Skip to content

Commit

Permalink
git-gui: display error launching blame as a message box.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pat Thoyts committed Aug 7, 2010
1 parent ea47503 commit 7807777
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7807777

Please sign in to comment.