Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 61011d1

Browse files
committed
[[ Bug 21093 ]] Handle thrown errors
This patch ensures that thrown errors which do not have a line in the `scriptExecutionErrors` do not cause an execution error when looking up the description.
1 parent 8f2dee9 commit 61011d1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11876,7 +11876,14 @@ function revIDELookupError pType, pError
1187611876
else if tCode is kExternalHandlerErrorCode then
1187711877
return "External handler execution error:" && item 4 to -1 of line 1 of pError
1187811878
end if
11879-
return line tCode of the scriptExecutionErrors
11879+
11880+
if tCode is an integer then
11881+
get line tCode of the scriptExecutionErrors
11882+
if it is not empty then
11883+
return it
11884+
end if
11885+
end if
11886+
return tCode
1188011887
else if pType is "warning" then
1188111888
return empty
1188211889
end if

0 commit comments

Comments
 (0)