Commit c4ccdfca authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon Committed by GitHub
Browse files

Merge pull request #187 from chuckatkins/adjust-error-handling-for-consistency

Adjust error handling for consistency
parents 6dd4f539 c41bf20a
...@@ -82,7 +82,7 @@ IO &ADIOS::DeclareIO(const std::string ioName) ...@@ -82,7 +82,7 @@ IO &ADIOS::DeclareIO(const std::string ioName)
IO &ADIOS::GetIO(const std::string name) IO &ADIOS::GetIO(const std::string name)
{ {
auto itIO = m_IOs.find(name); auto itIO = m_IOs.find(name);
if (itIO == m_IOs.end()) if (m_DebugMode && itIO == m_IOs.end())
{ {
throw std::invalid_argument( throw std::invalid_argument(
"ERROR: Unable to find previously defined IO object with name \"" + "ERROR: Unable to find previously defined IO object with name \"" +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment