data.msg.contains("error") {"msg":"an error occurred"}