Commit 02caf075c48c382a507fa89983d40e45636a3821 Parent: 7fd3daa1f01e9a5d1dd98d4cd1fec510f2f1a2c3 Author: mcol <mcol@posteo.net> Date: 2021-09-18 20:58:03 +0100 Committer: mcol <mcol@posteo.net> Committed: 2021-09-18 20:58:03 +0100 Better error message when failing to resolve HEAD
src/Repositories.hs Modified
@@ -9,6 +9,8 @@ import Data.Tagged import Git import Git.Libgit2 (lgFactory) +import System.FilePath (takeFileName) +import Text.Ginger (easyRender) import Config (Config, repoPaths) import Templates (Template, templateGinger, templatePath) @@ -35,8 +37,7 @@ Just commitID -> do headCommit <- lookupCommit (Tagged commitID) liftIO $ print $ commitLog headCommit - _ -> liftIO (print "Couldn't resolve HEAD") - + _ -> liftIO $ print $ "gitserve: " <> (takeFileName path) <> ": Failed to resolve HEAD." -- Variables: title = "gitserve"