summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2010-08-08 00:07:43 +0100
committerPat Thoyts <patthoyts@users.sourceforge.net>2010-08-08 00:07:43 +0100
commit780777720a1ded770be7653cee0dc9777f14f07f (patch)
treee0e1dbca067d0a74d3db232e652dcb1f940983c4
parentea47503d4dc80db54dbb8e568f7a7058ec25bacb (diff)
downloadgit-780777720a1ded770be7653cee0dc9777f14f07f.tar.gz
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>
-rwxr-xr-xgit-gui.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index e554043e99..815725d1e1 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