提交 78077772 编写于 作者: P Pat Thoyts

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: NPat Thoyts <patthoyts@users.sourceforge.net>
上级 ea47503d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册