Skip to content

Commit

Permalink
Point to the correct input in the error message when an id isn't prov…
Browse files Browse the repository at this point in the history
…ided.
  • Loading branch information
SpicyLemon committed Oct 4, 2024
1 parent 140104d commit b679fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changelog/add-change.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ elif [[ "$num" =~ [^[:digit:]] ]]; then
fi

if [[ -z "$id" ]]; then
printf 'No <num> provided, and it could not be determined from the current branch name.\n'
printf 'No <id> provided, and it could not be determined from the current branch name.\n'
exit 1
elif [[ "$id" =~ [^-[:alnum:]] ]]; then
printf 'Invalid <id>: [%s]. Can only contain alphanumeric characters and dashes.\n' "$id"
Expand Down

0 comments on commit b679fc3

Please sign in to comment.