Skip to content

Commit

Permalink
Update algorithms to use HTTPResponse status. Refs #8727.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Feb 3, 2014
1 parent 448a32c commit 002b320
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -184,7 +184,7 @@ namespace Mantid
std::istream& responseStream = session.receiveResponse(response);

// Obtain the status returned by the server to verify if it was a success.
std::string HTTPStatus = boost::lexical_cast<std::string>(response.getStatus());
Poco::Net::HTTPResponse::HTTPStatus HTTPStatus = response.getStatus();
// The error message returned by the IDS (if one exists).
std::string IDSError = CatalogAlgorithmHelper().getIDSError(HTTPStatus, responseStream);
// Cancel the algorithm and display the message if it exists.
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/ICat/src/CatalogPublish.cpp
Expand Up @@ -151,7 +151,7 @@ namespace Mantid
std::istream& responseStream = session.receiveResponse(response);

// Obtain the status returned by the server to verify if it was a success.
std::string HTTPStatus = boost::lexical_cast<std::string>(response.getStatus());
Poco::Net::HTTPResponse::HTTPStatus HTTPStatus = response.getStatus();
// The error message returned by the IDS (if one exists).
std::string IDSError = CatalogAlgorithmHelper().getIDSError(HTTPStatus, responseStream);
// Cancel the algorithm and display the message if it exists.
Expand Down

0 comments on commit 002b320

Please sign in to comment.