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

Commit 14cfc59

Browse files
committed
[[ Bug 21093 ]] Include line in thrown error description
This patch ensures that descriptions of thrown errors in the script editor include the line number they were thrown on.
1 parent 61011d1 commit 14cfc59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Toolset/libraries/revdebuggerlibrary.livecodescript

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,6 +2071,9 @@ command revDebuggerUpdateScriptEditor pObject, pHandler, pLine, pState, pError
20712071
revGoScriptEditor the name of stack tScriptEditor
20722072

20732073
if pError is not empty then
2074+
if the number of items of pError is 1 then
2075+
put comma & pLine after pError
2076+
end if
20742077
# OK-2008-07-10 : This needs to be sent in time so that it arrives after the script
20752078
# editor has finished initializing itself.
20762079
send "revSEDisplayExecutionError pError, pObject" to stack tScriptEditor in 0 milliseconds

0 commit comments

Comments
 (0)