Adds error code to prompt on failure