* mu-util.h: fix catch-macro for the case where the GError is set already

This commit is contained in:
djcb
2012-03-30 19:02:07 +03:00
parent 7f0ec697d8
commit 2a105f1612

View File

@ -301,6 +301,7 @@ typedef gpointer XapianEnquire;
g_set_error ((GE),0,(E), "%s: xapian error '%s'", \
__FUNCTION__, xerr.get_msg().c_str()); \
} catch (...) { \
if ((GE)&&!(*(GE))) \
g_set_error ((GE),0,(MU_ERROR_INTERNAL), \
"%s: caught exception", __FUNCTION__); \
}
@ -323,6 +324,7 @@ typedef gpointer XapianEnquire;
__FUNCTION__, xerr.get_msg().c_str()); \
return (R); \
} catch (...) { \
if ((GE)&&!(*(GE))) \
g_set_error ((GE),0,(MU_ERROR_INTERNAL), \
"%s: caught exception", __FUNCTION__); \
return (R); \