Skip to content

Commit

Permalink
Refs #8506. MuonAnalysis: better error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbekasov committed Nov 29, 2013
1 parent 3096975 commit 2d8de9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,9 @@ void MuonAnalysis::inputFileChanged(const QStringList& files)
loadDeadTimes->setPropertyValue("OutputWorkspace", customDeadTimes.name());
loadDeadTimes->execute();

if ( ! customDeadTimes )
throw std::runtime_error("Unable to load dead times from the spefied file");

applyCorrAlg->setPropertyValue("DeadTimeTable", customDeadTimes.name());
}

Expand Down

0 comments on commit 2d8de9a

Please sign in to comment.