← All tips

Bash: exit with a message

bashscripts

Write errors to stderr and exit non-zero.

echo "error: missing token" >&2
exit 1