Skip to content

Commit

Permalink
fix warnings from msvc compiler, re #12610
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Aug 12, 2015
1 parent 59ed681 commit 8d3924c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,15 +486,15 @@ void EnggDiffractionPresenter::loadOrCalcVanadiumWorkspaces(
"properties passed to the algorithms were invalid. "
"This is possibly because some of the settings are not "
"consistent. Please check the log messages for "
"details. Details: ");
"details. Details: " + std::string(ia.what()));
throw;
} catch (std::runtime_error &re) {
m_view->userError("Failed to calculate Vanadium corrections",
"There was an error while executing one of the "
"algorithms used to perform Vanadium corrections. "
"There was no obvious error in the input properties "
"but the algorithm failed. Please check the log "
"messages for details.");
"messages for details." + std::string(re.what()));
throw;
}
} else {
Expand All @@ -505,7 +505,7 @@ void EnggDiffractionPresenter::loadOrCalcVanadiumWorkspaces(
try {
loadVanadiumPrecalcWorkspaces(preIntegFilename, preCurvesFilename,
vanIntegWS, vanCurvesWS);
} catch (std::runtime_error &re) {
} catch (std::runtime_error &) {
m_view->userError(
"Error while loading precalculated Vanadium corrections",
"The files with precalculated Vanadium corection features (spectra "
Expand Down

0 comments on commit 8d3924c

Please sign in to comment.