From 0abaab4eed74d53327767e69e4dc1e88c514118c Mon Sep 17 00:00:00 2001 From: Russell Gokemeijer Date: Thu, 25 Jan 2024 13:14:08 -0500 Subject: [PATCH] Fixed Typo in error messages --- src/parameter_input.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parameter_input.cpp b/src/parameter_input.cpp index b1f03705a8..9e3bc68912 100644 --- a/src/parameter_input.cpp +++ b/src/parameter_input.cpp @@ -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); @@ -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); } @@ -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); @@ -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); }