Skip to content

Commit

Permalink
[PATCH] gitk: start-up bugfix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano authored and Paul Mackerras committed May 26, 2006
1 parent 8974c6f commit b5e0963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -4937,7 +4937,7 @@ if {$i >= 0} {
# so look for "fatal:".
set i [string first "fatal:" $err]
if {$i > 0} {
set err [string range [expr {$i + 6}] end]
set err [string range $err [expr {$i + 6}] end]
}
show_error . "Bad arguments to gitk:\n$err"
exit 1
Expand Down

0 comments on commit b5e0963

Please sign in to comment.