diff --git a/Framework/Particles/ParticleProperties.h b/Framework/Particles/ParticleProperties.h index 891e11403290a7ad199cab8e87a10ad1aa0b0f90..41b485adee0bdc1fac6dcfea79391d25d4c6b4a9 100644 --- a/Framework/Particles/ParticleProperties.h +++ b/Framework/Particles/ParticleProperties.h @@ -78,7 +78,7 @@ namespace corsika::particles { */ int16_t constexpr GetChargeNumber(Code const p) { if (p == Code::Nucleus) - throw std::runtime_error("Cannot GetMass() of particle::Nucleus -> unspecified"); + throw std::runtime_error("Cannot GetChargeNumber() of particle::Nucleus -> unspecified"); // electric_charges stores charges in units of (e/3), e.g. 3 for a proton return detail::electric_charges[static_cast<CodeIntType>(p)] / 3; } @@ -88,7 +88,7 @@ namespace corsika::particles { */ corsika::units::si::ElectricChargeType constexpr GetCharge(Code const p) { if (p == Code::Nucleus) - throw std::runtime_error("Cannot GetMass() of particle::Nucleus -> unspecified"); + throw std::runtime_error("Cannot GetCharge() of particle::Nucleus -> unspecified"); return GetChargeNumber(p) * (corsika::units::constants::e); }