ux: better git error reporting
parent
96870507c5
commit
e1bd706c91
|
@ -41,7 +41,7 @@ def getProjectGithubUrl (directory : System.FilePath := "." ) : IO String := do
|
||||||
cwd := directory
|
cwd := directory
|
||||||
}
|
}
|
||||||
if out.exitCode != 0 then
|
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
|
return out.stdout.trimRight
|
||||||
|
|
||||||
/--
|
/--
|
||||||
|
@ -54,7 +54,7 @@ def getProjectCommit (directory : System.FilePath := "." ) : IO String := do
|
||||||
cwd := directory
|
cwd := directory
|
||||||
}
|
}
|
||||||
if out.exitCode != 0 then
|
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
|
return out.stdout.trimRight
|
||||||
|
|
||||||
/--
|
/--
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
leanprover/lean4:v4.1.0-rc1
|
leanprover/lean4:v4.1.0
|
||||||
|
|
Loading…
Reference in New Issue