Skip to content

Commit

Permalink
Write errors to stderr instead of stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbakke committed Oct 11, 2017
1 parent 66947d1 commit e57574b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tc-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ error_handler () {
local SCRIPT_NAME="$0"
local LINE="$1"
local EXIT_CODE="$2"
echo "${SCRIPT_NAME}: Error in line ${LINE} (exit code ${EXIT_CODE})"
>&2 echo "${SCRIPT_NAME}: Error in line ${LINE} (exit code ${EXIT_CODE})"
exit ${EXIT_CODE}
}

Expand Down

0 comments on commit e57574b

Please sign in to comment.