Skip to content
Snippets Groups Projects
Commit 4e5548fc authored by Olivier Langella's avatar Olivier Langella
Browse files

catch runtime error when loading spectrum

parent 5becb9ff
No related branches found
No related tags found
No related merge requests found
......@@ -45,12 +45,19 @@ void SpectrumSpLoaderThread::doLoadSpectrumSp (PeptideMatch * p_peptide_match) {
}
catch (pappso::ExceptionNotFound & error) {
qDebug() << "SpectrumSpLoaderThread::doLoadSpectrumSp error " << error.qwhat();
emit spectrumSpReady(spectrum, error.qwhat(), QString(""));
}
catch (pappso::PappsoException & error) {
qDebug() << "SpectrumSpLoaderThread::doLoadSpectrumSp error " << error.qwhat();
emit spectrumSpReady(spectrum, QString(""), error.qwhat());
}
catch (std::exception & error) {
qDebug() << "SpectrumSpLoaderThread::doLoadSpectrumSp error " << error.what();
emit spectrumSpReady(spectrum, QString(""), QString(error.what()));
}
qDebug() << "SpectrumSpLoaderThread::doLoadSpectrumSp end";
}
......
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