Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
31169c9b
Commit
31169c9b
authored
Feb 14, 2018
by
Mccaskey, Alex
Browse files
Updating remote accelerator to throw exceptions
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
47eb1d1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
xacc/accelerator/remote/RemoteAccelerator.cpp
View file @
31169c9b
...
...
@@ -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
()));
}
z
<<
getResponse
.
get
().
extract_json
().
get
();
// xacc::info("GET RESPONSE: " + z.str());
return
z
.
str
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment