[MOAB-dev] commit/MOAB: danwu: Use SET_GLB_ERR instead of SET_ERR for setting some globally fatal errors, like MB_FILE_DOES_NOT_EXIST or MB_NOT_IMPLEMENTED.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Feb 24 14:20:30 CST 2014
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/21489d50ee1e/
Changeset: 21489d50ee1e
Branch: error_handling_enhancement
User: danwu
Date: 2014-02-24 21:20:15
Summary: Use SET_GLB_ERR instead of SET_ERR for setting some globally fatal errors, like MB_FILE_DOES_NOT_EXIST or MB_NOT_IMPLEMENTED.
Affected #: 2 files
diff --git a/src/Core.cpp b/src/Core.cpp
index fed3285..7319180 100644
--- a/src/Core.cpp
+++ b/src/Core.cpp
@@ -552,7 +552,7 @@ ErrorCode Core::serial_load_file( const char* file_name,
mError->set_last_error( "%s: %s", file_name, strerror(errno) );
return MB_FILE_DOES_NOT_EXIST;
*/
- SET_ERR_STR(MB_FILE_DOES_NOT_EXIST, file_name << ": " << strerror(errno));
+ SET_GLB_ERR_STR(MB_FILE_DOES_NOT_EXIST, file_name << ": " << strerror(errno));
}
#if defined(WIN32) || defined(WIN64) || defined(MSC_VER)
else if (_S_IFDIR(stat_data.st_mode)) {
diff --git a/src/io/NCHelper.cpp b/src/io/NCHelper.cpp
index 2bed0c9..a83284b 100644
--- a/src/io/NCHelper.cpp
+++ b/src/io/NCHelper.cpp
@@ -1105,7 +1105,7 @@ ErrorCode ScdNCHelper::read_scd_variable_to_nonset_allocate(std::vector<ReadNC::
break;
case ReadNC::ENTLOCNSEDGE:
case ReadNC::ENTLOCEWEDGE:
- SET_ERR(MB_NOT_IMPLEMENTED, "Reading edge data not implemented yet");
+ SET_GLB_ERR(MB_NOT_IMPLEMENTED, "Reading edge data not implemented yet");
case ReadNC::ENTLOCFACE:
// Faces
vdatas[i].readStarts[2] = lCDims[1];
Repository URL: https://bitbucket.org/fathomteam/moab/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the moab-dev
mailing list