Skip to content

Commit

Permalink
jim: change the output of errorInfo
Browse files Browse the repository at this point in the history
Rather than "Runtime Error: <file>:<line>: ...", use
use "<file>:<line>: Error: ..."

This latter format is both shorter and more consistent with other tools (e.g. gcc).
This also allows errors to be reported with the default errorfmt of vim's quickfix feature.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
  • Loading branch information
msteveb committed Dec 9, 2014
1 parent b807e3c commit 63246ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ proc errorInfo {msg {stacktrace ""}} {
}
lassign $stacktrace p f l
if {$f ne ""} {
set result "Runtime Error: $f:$l: "
set result "$f:$l: Error: "
}
append result "$msg\n"
append result [stackdump $stacktrace]
Expand Down

0 comments on commit 63246ec

Please sign in to comment.