diff --git a/src/xrpld/rpc/Status.h b/src/xrpld/rpc/Status.h index 809132c97f..a548913711 100644 --- a/src/xrpld/rpc/Status.h +++ b/src/xrpld/rpc/Status.h @@ -42,8 +42,9 @@ public: { } - Status(ErrorCodeI e, std::string s) : type_(Type::ErrorCodeI), code_(e), messages_{std::move(s)} + Status(ErrorCodeI e, std::string s) : type_(Type::ErrorCodeI), code_(e) { + messages_.push_back(std::move(s)); } /* Returns a representation of the integer status Code as a string.