* mu-util.h: fix catch-macro for the case where the GError is set already
This commit is contained in:
@ -301,9 +301,10 @@ typedef gpointer XapianEnquire;
|
|||||||
g_set_error ((GE),0,(E), "%s: xapian error '%s'", \
|
g_set_error ((GE),0,(E), "%s: xapian error '%s'", \
|
||||||
__FUNCTION__, xerr.get_msg().c_str()); \
|
__FUNCTION__, xerr.get_msg().c_str()); \
|
||||||
} catch (...) { \
|
} catch (...) { \
|
||||||
g_set_error ((GE),0,(MU_ERROR_INTERNAL), \
|
if ((GE)&&!(*(GE))) \
|
||||||
|
g_set_error ((GE),0,(MU_ERROR_INTERNAL), \
|
||||||
"%s: caught exception", __FUNCTION__); \
|
"%s: caught exception", __FUNCTION__); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define MU_XAPIAN_CATCH_BLOCK_RETURN(R) \
|
#define MU_XAPIAN_CATCH_BLOCK_RETURN(R) \
|
||||||
@ -323,7 +324,8 @@ typedef gpointer XapianEnquire;
|
|||||||
__FUNCTION__, xerr.get_msg().c_str()); \
|
__FUNCTION__, xerr.get_msg().c_str()); \
|
||||||
return (R); \
|
return (R); \
|
||||||
} catch (...) { \
|
} catch (...) { \
|
||||||
g_set_error ((GE),0,(MU_ERROR_INTERNAL), \
|
if ((GE)&&!(*(GE))) \
|
||||||
|
g_set_error ((GE),0,(MU_ERROR_INTERNAL), \
|
||||||
"%s: caught exception", __FUNCTION__); \
|
"%s: caught exception", __FUNCTION__); \
|
||||||
return (R); \
|
return (R); \
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user