Add error code to prompt