Skip to content

Commit 7807777

Browse files
committed
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 <[email protected]>
1 parent ea47503 commit 7807777

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

git-gui.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2944,7 +2944,12 @@ blame {
29442944
}
29452945
blame {
29462946
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]
29482953
exit 1
29492954
}
29502955
blame::new $head $path $jump_spec

0 commit comments

Comments
 (0)