Commit c41bf20a authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Adjust error handling for consistency

parent d841ae8a
......@@ -82,7 +82,7 @@ IO &ADIOS::DeclareIO(const std::string ioName)
IO &ADIOS::GetIO(const std::string name)
{
auto itIO = m_IOs.find(name);
if (itIO == m_IOs.end())
if (m_DebugMode && itIO == m_IOs.end())
{
throw std::invalid_argument(
"ERROR: Unable to find previously defined IO object with name \"" +
......
Markdown is supported
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