Skip to content

Commit

Permalink
Merge pull request #557 from Rgokemeijer/typo-fix
Browse files Browse the repository at this point in the history
Fixed Typo in Error Messages
  • Loading branch information
felker authored Jan 25, 2024
2 parents 951366d + 0abaab4 commit e58b549
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parameter_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ bool ParameterInput::GetBoolean(std::string block, std::string name) {
// get pointer to node with same block name in singly linked list of InputBlocks
pb = GetPtrToBlock(block);
if (pb == nullptr) {
msg << "### FATAL ERROR in function [ParameterInput::GetReal]" << std::endl
msg << "### FATAL ERROR in function [ParameterInput::GetBoolean]" << std::endl
<< "Block name '" << block << "' not found when trying to set value "
<< "for parameter '" << name << "'";
ATHENA_ERROR(msg);
Expand All @@ -508,7 +508,7 @@ bool ParameterInput::GetBoolean(std::string block, std::string name) {
// get pointer to node with same parameter name in singly linked list of InputLines
pl = pb->GetPtrToLine(name);
if (pl == nullptr) {
msg << "### FATAL ERROR in function [ParameterInput::GetReal]" << std::endl
msg << "### FATAL ERROR in function [ParameterInput::GetBoolean]" << std::endl
<< "Parameter name '" << name << "' not found in block '" << block << "'";
ATHENA_ERROR(msg);
}
Expand Down Expand Up @@ -545,7 +545,7 @@ std::string ParameterInput::GetString(std::string block, std::string name) {
// get pointer to node with same block name in singly linked list of InputBlocks
pb = GetPtrToBlock(block);
if (pb == nullptr) {
msg << "### FATAL ERROR in function [ParameterInput::GetReal]" << std::endl
msg << "### FATAL ERROR in function [ParameterInput::GetString]" << std::endl
<< "Block name '" << block << "' not found when trying to set value "
<< "for parameter '" << name << "'";
ATHENA_ERROR(msg);
Expand All @@ -554,7 +554,7 @@ std::string ParameterInput::GetString(std::string block, std::string name) {
// get pointer to node with same parameter name in singly linked list of InputLines
pl = pb->GetPtrToLine(name);
if (pl == nullptr) {
msg << "### FATAL ERROR in function [ParameterInput::GetReal]" << std::endl
msg << "### FATAL ERROR in function [ParameterInput::GetString]" << std::endl
<< "Parameter name '" << name << "' not found in block '" << block << "'";
ATHENA_ERROR(msg);
}
Expand Down

0 comments on commit e58b549

Please sign in to comment.