IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 50f80c23 authored by Felix Riehn's avatar Felix Riehn Committed by Maximilian Reininghaus
Browse files

made error message more informative

parent ccf35ecb
No related branches found
No related tags found
1 merge request!487Harmonize calculation of sqrtSNN in `corsika_proposal::HadronicPhotonModel` with `corsika::sophia::InteractionModel`
...@@ -66,7 +66,9 @@ namespace corsika::sophia { ...@@ -66,7 +66,9 @@ namespace corsika::sophia {
// accepts only photon-nucleon interactions // accepts only photon-nucleon interactions
if (!isValid(projectileId, targetId, sqrtS)) { if (!isValid(projectileId, targetId, sqrtS)) {
CORSIKA_LOGGER_ERROR(logger_, "Invalid target/projectile/energy combination"); CORSIKA_LOGGER_ERROR(logger_,
"Invalid target/projectile/energy combination: {},{},{} GeV",
projectileId, targetId, sqrtS / 1_GeV);
throw std::runtime_error("SOPHIA: Invalid target/projectile/energy combination"); throw std::runtime_error("SOPHIA: Invalid target/projectile/energy combination");
} }
......
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