ux: better git error reporting

main
Henrik Böving 2023-09-26 23:15:58 +02:00
parent 96870507c5
commit e1bd706c91
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ def getProjectGithubUrl (directory : System.FilePath := "." ) : IO String := do
cwd := directory
}
if out.exitCode != 0 then
throw <| IO.userError <| "git exited with code " ++ toString out.exitCode
throw <| IO.userError <| s!"git exited with code {out.exitCode} while looking for the git remote in {directory}"
return out.stdout.trimRight
/--
@ -54,7 +54,7 @@ def getProjectCommit (directory : System.FilePath := "." ) : IO String := do
cwd := directory
}
if out.exitCode != 0 then
throw <| IO.userError <| "git exited with code " ++ toString out.exitCode
throw <| IO.userError <| s!"git exited with code {out.exitCode} while looking for the current commit in {directory}"
return out.stdout.trimRight
/--

View File

@ -1 +1 @@
leanprover/lean4:v4.1.0-rc1
leanprover/lean4:v4.1.0