IAP GITLAB

Skip to content
Snippets Groups Projects
Commit f5ccc552 authored by Remy Prechelt's avatar Remy Prechelt
Browse files

Update error message when a stream is not registered.

parent d0b540df
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!220Updates to RNGManager interface and RNG names
...@@ -24,7 +24,7 @@ corsika::random::RNG& corsika::random::RNGManager::GetRandomStream( ...@@ -24,7 +24,7 @@ corsika::random::RNG& corsika::random::RNGManager::GetRandomStream(
if (IsRegistered(pStreamName)) { if (IsRegistered(pStreamName)) {
return rngs.at(pStreamName); return rngs.at(pStreamName);
} else { // this stream name is not in the map } else { // this stream name is not in the map
throw std::runtime_error(pStreamName + " is not a registered stream."); throw std::runtime_error("'" + pStreamName + "' is not a registered stream.");
} }
} }
......
...@@ -46,7 +46,6 @@ namespace corsika::process::UrQMD { ...@@ -46,7 +46,6 @@ namespace corsika::process::UrQMD {
bool CanInteract(particles::Code) const; bool CanInteract(particles::Code) const;
private: private:
void readXSFile(std::string const&); void readXSFile(std::string const&);
corsika::random::RNG& rng_ = corsika::random::RNG& rng_ =
......
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