@matheusbsbs / matheus-bagliano / commits / 780777720a
Fork 0

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 <patthoyts@users.sourceforge.net>

Pat Thoyts committed Aug 8, 2010 at 00:07 UTC 780777720a1ded770be7653cee0dc9777f14f07f
1 file changed +6 -1
git-gui.sh
+6 -1
@@ -2944,7 +2944,12 @@ blame {
2944 }
2945 blame {
2946 if {$head eq {} && ![file exists $path]} {
2947 - puts stderr [mc "fatal: cannot stat path %s: No such file or directory" $path]
2947 + catch {wm withdraw .}
2948 + tk_messageBox \
2949 + -icon error \
2950 + -type ok \
2951 + -title [mc "git-gui: fatal error"] \
2952 + -message [mc "fatal: cannot stat path %s: No such file or directory" $path]
2953 exit 1
2954 }
2955 blame::new $head $path $jump_spec