From: Pat Thoyts Date: Sat, 7 Aug 2010 23:07:43 +0000 (+0100) Subject: git-gui: display error launching blame as a message box. X-Git-Tag: gitgui-0.13.0~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=780777720a1ded770be7653cee0dc9777f14f07f;p=git.git git-gui: display error launching blame as a message box. This does not appear to Windows users and can follow the form of the fatal error messages near the top of the script file. Signed-off-by: Pat Thoyts --- diff --git a/git-gui.sh b/git-gui.sh index e554043e9..815725d1e 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -2944,7 +2944,12 @@ blame { } blame { if {$head eq {} && ![file exists $path]} { - puts stderr [mc "fatal: cannot stat path %s: No such file or directory" $path] + catch {wm withdraw .} + tk_messageBox \ + -icon error \ + -type ok \ + -title [mc "git-gui: fatal error"] \ + -message [mc "fatal: cannot stat path %s: No such file or directory" $path] exit 1 } blame::new $head $path $jump_spec