Retrieves the generic message for a specific error code and compares it to the last error message.