Skip to content

Commit

Permalink
Re #5294. Throw an exception if no groups are defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Jan 24, 2013
1 parent d8e6abf commit 2c76a11
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ void DiffractionFocussing2::exec()
udet2group.clear();
// std::cout << "(1) nGroups " << nGroups << "\n";
groupWS->makeDetectorIDToGroupVector(udet2group, nGroups);
if (nGroups <= 0)
throw std::runtime_error("No groups were specified.");
// std::cout << "(2) nGroups " << nGroups << "\n";

//This finds the rebin parameters (used in both versions)
Expand Down

0 comments on commit 2c76a11

Please sign in to comment.