Commit 125b1fa8 authored by Alessio Netti's avatar Alessio Netti
Browse files

Fixing compilation errors

parent bfbd219d
......@@ -568,12 +568,12 @@ void AnalyticsManager::PUT_analytics_compute(endpointArgs) {
if(a->getStreaming() && a->getDuplicate()) {
continue;
} else {
res.body() = e.what() + "\n";
res.body() = string(e.what()) + string("\n");
res.result(http::status::not_found);
return;
}
} catch(const exception& e) {
res.body() = e.what() + "\n";
res.body() = string(e.what()) + string("\n");
res.result(http::status::internal_server_error);
return;
}
......@@ -638,13 +638,13 @@ void AnalyticsManager::PUT_analytics_analyzer(endpointArgs) {
res.body() += reply.response;
res.result(http::status::ok);
} catch(const std::invalid_argument &e) {
res.body() = e.what() + "\n";
res.body() = string(e.what()) + string("\n");
res.result(http::status::bad_request);
} catch(const std::domain_error &e) {
res.body() = e.what() + "\n";
res.body() = string(e.what()) + string("\n");
res.result(http::status::not_found);
} catch(const std::exception &e) {
res.body() = e.what() + "\n";
res.body() = string(e.what()) + string("\n");
res.result(http::status::internal_server_error);
}
}
......
Markdown is supported
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