Skip to content

Commit

Permalink
Print errors to STDERR
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonVanAssche committed Nov 7, 2022
1 parent d369f07 commit 6b88aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bashpass
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ passLength="$(GetSetting 'length')" || :
# Print out the error that occurred and exit (with the correct exit code) afterwards.
Kill() {
printf '\n'
printf 'An error occurred: %s' "${1}"
printf 'An error occurred: %s' "${1}" >&2
printf '\n'
exit "${2}"
}
Expand Down

0 comments on commit 6b88aeb

Please sign in to comment.