Improve Error Message

This commit is contained in:
Stefan Zweifel 2025-02-05 17:17:19 +01:00
parent ad56d4eb46
commit 1d986f74dd
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ _check_if_is_git_repository() {
_check_if_repository_is_in_detached_state() {
if [ -z "$(git symbolic-ref HEAD)" ]
then
_log "error" "Repository is in detached HEAD state. Please checkout a branch before committing.";
_log "error" "Repository is in detached HEAD state. Please make sure you check out a branch. Adjust the `ref` input accordingly.";
exit 1;
else
_log "debug" "Repository is on a branch.";

View File

@ -1107,5 +1107,5 @@ END
run git_auto_commit
assert_failure;
assert_line "::error::Repository is in detached HEAD state. Please checkout a branch before committing."
assert_line "::error::Repository is in detached HEAD state. Please make sure you check out a branch. Adjust the `ref` input accordingly."
}