aboutsummaryrefslogtreecommitdiff
path: root/stdlib.tcl
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2014-12-06 11:32:15 +1000
committerSteve Bennett <steveb@workware.net.au>2014-12-09 13:07:55 +1000
commit63246ecaa29ff252387c6fb3f9d2554cacaf2d6c (patch)
tree908104025bd0ec2272627fde000f9a3d8c7b28b0 /stdlib.tcl
parentb807e3c1640870464ced1859c29d200188df12ab (diff)
downloadjimtcl-63246ecaa29ff252387c6fb3f9d2554cacaf2d6c.zip
jimtcl-63246ecaa29ff252387c6fb3f9d2554cacaf2d6c.tar.gz
jimtcl-63246ecaa29ff252387c6fb3f9d2554cacaf2d6c.tar.bz2
jim: change the output of errorInfo
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>
Diffstat (limited to 'stdlib.tcl')
-rw-r--r--stdlib.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib.tcl b/stdlib.tcl
index 3a2bbd8..08cb217 100644
--- a/stdlib.tcl
+++ b/stdlib.tcl
@@ -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]