[PATCH] gitk: start-up bugfix
The code to extract a message part from the error message was not passing the error message to [string range], and resulted in the show_error not getting called. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Junio C Hamano committed
May 26, 2006 at 00:07 UTC
b5e096337c5516fece2c21d813c8534ac541f2a0
1 file changed
+1
-1
gitk
+1
-1
@@ -4937,7 +4937,7 @@ if {$i >= 0} {
4937
# so look for "fatal:".
4938
set i [string first "fatal:" $err]
4939
if {$i > 0} {
4940
- set err [string range [expr {$i + 6}] end]
4940
+ set err [string range $err [expr {$i + 6}] end]
4941
}
4942
show_error . "Bad arguments to gitk:\n$err"
4943
exit 1