Bash print return codes on error