Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfirth committed Nov 22, 2024
1 parent 47c2c5c commit 14ab065
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion private/git.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,6 @@
(define (git-commit! message)
(define escaped-message (string-replace message "\"" "\\\""))
(unless (system (format "git commit --all --quiet --message=\"~a\"" escaped-message))
(raise-arguments-error 'git-commit! "committing files to Git failed")))
(raise-arguments-error 'git-commit!
"committing files to Git failed"
"commit message" message)))

0 comments on commit 14ab065

Please sign in to comment.