Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Toolset/libraries/revdebuggerlibrary.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -2071,6 +2071,9 @@ command revDebuggerUpdateScriptEditor pObject, pHandler, pLine, pState, pError
revGoScriptEditor the name of stack tScriptEditor

if pError is not empty then
if the number of items of pError is 1 then
put comma & pLine after pError
end if
# OK-2008-07-10 : This needs to be sent in time so that it arrives after the script
# editor has finished initializing itself.
send "revSEDisplayExecutionError pError, pObject" to stack tScriptEditor in 0 milliseconds
Expand Down
9 changes: 8 additions & 1 deletion Toolset/libraries/revidelibrary.8.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -11876,7 +11876,14 @@ function revIDELookupError pType, pError
else if tCode is kExternalHandlerErrorCode then
return "External handler execution error:" && item 4 to -1 of line 1 of pError
end if
return line tCode of the scriptExecutionErrors

if tCode is an integer then
get line tCode of the scriptExecutionErrors
if it is not empty then
return it
end if
end if
return tCode
else if pType is "warning" then
return empty
end if
Expand Down
1 change: 1 addition & 0 deletions notes/bugfix-21093.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix the display of errors thrown by the throw command in the script editor