def action_fail(message): """Sets the action status to failed and sets the error message. The results set by action_set are preserved.""" subprocess.check_call(['action-fail', message])