Skip to content
Snippets Groups Projects
Commit 037d40ab authored by Federico Montesino Pouzols's avatar Federico Montesino Pouzols
Browse files

send error details to log, 1311473, re #13951

parent c935e51b
No related branches found
No related tags found
No related merge requests found
...@@ -110,10 +110,11 @@ void CheckMantidVersion::exec() { ...@@ -110,10 +110,11 @@ void CheckMantidVersion::exec() {
bool parseOK = r.parse(json, root); bool parseOK = r.parse(json, root);
if (!parseOK) { if (!parseOK) {
g_log.error() << "Error trying to parse this JSON string from GitHub: " g_log.error() << "Error trying to parse this JSON string from GitHub: "
<< json << std::endl; << json << std::endl
<< ". Error details: " << r.getFormattedErrorMessages()
<< std::endl;
throw std::runtime_error("Error found when parsing version information " throw std::runtime_error("Error found when parsing version information "
"retrieved from GitHub as a JSON string." + "retrieved from GitHub as a JSON string.");
r.getFormattedErrorMessages());
} }
std::string gitHubVersionTag = root["tag_name"].asString(); std::string gitHubVersionTag = root["tag_name"].asString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment