display error code if last command doesn't exit with 0