[MOAB-dev] r2147 - MOAB/trunk/tools/iMesh

tautges at mcs.anl.gov tautges at mcs.anl.gov
Tue Oct 14 15:26:37 CDT 2008


Author: tautges
Date: 2008-10-14 15:26:37 -0500 (Tue, 14 Oct 2008)
New Revision: 2147

Modified:
   MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
Log:
In the "why did this ever work correctly" department: fixed error handling in iMesh_load so it would indeed fail if it couldn't find the file requested.

Sigh.


Modified: MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp	2008-10-14 19:46:56 UTC (rev 2146)
+++ MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp	2008-10-14 20:26:37 UTC (rev 2147)
@@ -324,6 +324,7 @@
       std::string msg("iMesh_load:ERROR loading a mesh, with error type: ");
       msg += MBI->get_error_string(result);
       iMesh_processError(iBase_ERROR_MAP[result], msg.c_str());
+      RETURN(iBase_ERROR_MAP[result]);
     }
 
     if (handle) {




More information about the moab-dev mailing list