From 780777720a1ded770be7653cee0dc9777f14f07f Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Sun, 8 Aug 2010 00:07:43 +0100 Subject: [PATCH] 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 --- git-gui.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.30.2