standardize createPaymentUri error message

This commit is contained in:
woodser
2019-07-01 09:47:39 -04:00
parent b9a8764ceb
commit f5a55392ee
+3 -3
View File
@@ -1237,9 +1237,9 @@ namespace monero {
cout << "createPaymentUri()" << endl;
// validate request
if (request.destinations.size() != 1) throw runtime_error("Must provide exactly one destination to send funds");
if (request.destinations.at(0)->address == boost::none) throw runtime_error("Must provide destination address");
if (request.destinations.at(0)->amount == boost::none) throw runtime_error("Must provide destination amount");
if (request.destinations.size() != 1) throw runtime_error("Cannot make URI from supplied parameters: must provide exactly one destination to send funds");
if (request.destinations.at(0)->address == boost::none) throw runtime_error("Cannot make URI from supplied parameters: must provide destination address");
if (request.destinations.at(0)->amount == boost::none) throw runtime_error("Cannot make URI from supplied parameters: must provide destination amount");
// prepare wallet2 params
string address = request.destinations.at(0)->address.get();