Add generic handling of error message.