Skip to content

Commit

Permalink
further output improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Tooley committed May 2, 2019
1 parent 822cc23 commit 7dad1b5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions src/baseconfiguration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ class ConfigurationBase {
}
catch (std::out_of_range &err)
{
throw InternalError("Attempt to access non-existent configuration option", __FILE__, __LINE__);
std::ostringstream errss;
errss << "Attempt to access non-existent configuration option \"" << key << "\"";
throw InternalError(errss.str(), __FILE__, __LINE__);
}
}

Expand All @@ -62,7 +64,9 @@ class ConfigurationBase {
}
catch (std::out_of_range &err)
{
throw InternalError("Attempt to access non-existent configuration option", __FILE__, __LINE__);
std::ostringstream errss;
errss << "Attempt to access non-existent configuration option \"" << key << "\"";
throw InternalError(errss.str(), __FILE__, __LINE__);
}
}

Expand All @@ -76,7 +80,9 @@ class ConfigurationBase {
}
catch (std::out_of_range &err)
{
throw InternalError("Attempt to access non-existent configuration option", __FILE__, __LINE__);
std::ostringstream errss;
errss << "Attempt to access non-existent configuration option \"" << key << "\"";
throw InternalError(errss.str(), __FILE__, __LINE__);
}
}

Expand All @@ -89,7 +95,9 @@ class ConfigurationBase {
}
catch (std::out_of_range &err)
{
throw InternalError("Attempt to access non-existent configuration option", __FILE__, __LINE__);
std::ostringstream errss;
errss << "Attempt to access non-existent configuration option \"" << key << "\"";
throw InternalError(errss.str(), __FILE__, __LINE__);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/elastic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void Elastic::innerloop(integer outer_count)
innerstep(inum, recalculate_lambda);
recalculate_lambda = false;

if (configuration.grab<bool>("save_intermediate_flames"))
if (configuration.grab<bool>("save_intermediate_frames"))
{
save_debug_frame(outer_count, inum);
save_debug_map(outer_count, inum);
Expand Down

0 comments on commit 7dad1b5

Please sign in to comment.