Skip to content

Commit

Permalink
more informative exception message when peaks missing, re #10967
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed May 28, 2015
1 parent 31dc59e commit 6979e1d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def PyExec(self):
foundPeaks = findPeaksAlg.getProperty('PeaksList').value

if foundPeaks.rowCount() < len(expectedPeaksTof):
raise Exception("Some peaks were not found")
txt = "Peaks effectively found: " + str(foundPeaks)[1:-1]
raise Exception("Some peaks from the list of expected peaks were not found by the algorithm "
"FindPeaks. " + txt)

fittedPeaks = self._createFittedPeaksTable()

Expand Down

0 comments on commit 6979e1d

Please sign in to comment.