git-gui: Display message box when we cannot find git in $PATH
[gitweb.git] / git-gui.sh
index 28d7c21692fe74ebdfe39c31a4cd27745cdf855f..10710e26c69a987fe2a712c1c146442525fefc05 100755 (executable)
@@ -498,7 +498,11 @@ proc rmsel_tag {text} {
 set _git  [_which git]
 if {$_git eq {}} {
        catch {wm withdraw .}
-       error_popup "Cannot find git in PATH."
+       tk_messageBox \
+               -icon error \
+               -type ok \
+               -title [mc "git-gui: fatal error"] \
+               -message [mc "Cannot find git in PATH."]
        exit 1
 }