Merge pull request #1625 from cjwyett/develop

Solve #1365
This commit is contained in:
Paul Romano 2020-08-05 06:33:39 -05:00 committed by GitHub
commit 537fe98258
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,10 +240,12 @@ score_str_to_int(std::string score_str)
try {
MT = std::stoi(score_str);
} catch (const std::invalid_argument& ex) {
throw std::invalid_argument("Invalid tally score \"" + score_str + "\"");
throw std::invalid_argument("Invalid tally score \"" + score_str + "\". See the docs "
"for details: https://docs.openmc.org/en/stable/usersguide/tallies.html#scores");
}
if (MT < 1)
throw std::invalid_argument("Invalid tally score \"" + score_str + "\"");
throw std::invalid_argument("Invalid tally score \"" + score_str + "\". See the docs "
"for details: https://docs.openmc.org/en/stable/usersguide/tallies.html#scores");
return MT;
}