Skip to content

Commit

Permalink
ux: better git error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
hargoniX committed Sep 26, 2023
1 parent 9687050 commit e1bd706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DocGen4/Output/SourceLinker.lean
Original file line number Diff line number Diff line change
Expand Up @@ -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

/--
Expand All @@ -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

/--
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:v4.1.0-rc1
leanprover/lean4:v4.1.0

0 comments on commit e1bd706

Please sign in to comment.