Commit 31169c9b authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Updating remote accelerator to throw exceptions



Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 47eb1d1c
......@@ -61,13 +61,8 @@ const std::string RestClient::get(const std::string& remoteUrl,
auto getResponse = getClient.request(getRequest);
// get the result as a string
std::stringstream z;
try {
z << getResponse.get().extract_json().get();
// xacc::info("GET RESPONSE: " + z.str());
} catch (std::exception& e) {
xacc::error("XACC RemoteAccelerator caught exception, " + std::string(e.what()));
}
return z.str();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment