[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>
This commit is contained in:

committed by
Paul Mackerras

parent
8974c6f93e
commit
b5e096337c
2
gitk
2
gitk
@ -4937,7 +4937,7 @@ if {$i >= 0} {
|
|||||||
# so look for "fatal:".
|
# so look for "fatal:".
|
||||||
set i [string first "fatal:" $err]
|
set i [string first "fatal:" $err]
|
||||||
if {$i > 0} {
|
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"
|
show_error . "Bad arguments to gitk:\n$err"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user