From c41bf20acffe9387c675e55cbb1ac1d2e7eb0ca5 Mon Sep 17 00:00:00 2001
From: Chuck Atkins <chuck.atkins@kitware.com>
Date: Sun, 25 Jun 2017 21:31:34 -0400
Subject: [PATCH] Adjust error handling for consistency

---
 source/adios2/core/ADIOS.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/adios2/core/ADIOS.cpp b/source/adios2/core/ADIOS.cpp
index acd211aae..af7020254 100644
--- a/source/adios2/core/ADIOS.cpp
+++ b/source/adios2/core/ADIOS.cpp
@@ -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 \"" +
-- 
GitLab