adds exit code to error message