webapp: detect on first run if git is not installed, and tell the user, rather than crashing non-informatively

Mostly for Windows, which has no sane package management..
This commit is contained in:
Joey Hess 2014-03-05 13:43:56 -04:00
parent ba4df0f112
commit d626a784f3
2 changed files with 4 additions and 1 deletions

View file

@ -163,7 +163,8 @@ firstRun listenhost = do
hFlush stdout
go
| otherwise = do
browser <- maybe Nothing webBrowser <$> Git.Config.global
browser <- maybe Nothing webBrowser
<$> catchDefaultIO Nothing Git.Config.global
openBrowser browser htmlshim url Nothing Nothing
go
where