added error code to prompt