diff --git a/Applications/ApplicationsLib/TestDefinition.cpp b/Applications/ApplicationsLib/TestDefinition.cpp index 7c6c3b014e61a16ff685f32978e49f009eb7df35..ed09d59d6d92d5bde60225856ff92adacacdfe78 100644 --- a/Applications/ApplicationsLib/TestDefinition.cpp +++ b/Applications/ApplicationsLib/TestDefinition.cpp @@ -39,19 +39,21 @@ bool isConvertibleToDouble(std::string const& s) } catch (...) { - OGS_FATAL("The given string '{:s}' is not convertible to double.", s); + ERR("The given string '{:s}' is not convertible to double.", s); + return false; } if (pos != s.size()) { - OGS_FATAL( - "Only {:d} characters were used for double conversion of string " + ERR("Only {:d} characters were used for double conversion of string " "'{:s}'", pos, s); + return false; } if (std::isnan(value)) { - OGS_FATAL("The given string '{:s}' results in a NaN value.", s); + ERR("The given string '{:s}' results in a NaN value.", s); + return false; } return true; }