mirror of https://github.com/djcb/mu.git
* mu-util: improve xapian exception error logging
This commit is contained in:
parent
adfdfe230d
commit
3e81be3c1e
|
@ -80,9 +80,8 @@ gboolean mu_util_check_dir (const gchar* path, gboolean readable,
|
|||
*/
|
||||
#define MU_XAPIAN_CATCH_BLOCK \
|
||||
catch (const Xapian::Error &err) { \
|
||||
g_warning ("%s: caught xapian exception '%s' (%s)", \
|
||||
__FUNCTION__, err.get_msg().c_str(), \
|
||||
err.get_error_string()); \
|
||||
g_warning ("%s: caught xapian exception '%s'", \
|
||||
__FUNCTION__, err.get_msg().c_str()); \
|
||||
} catch (...) { \
|
||||
g_warning ("%s: caught exception", __FUNCTION__); \
|
||||
}
|
||||
|
@ -90,9 +89,8 @@ gboolean mu_util_check_dir (const gchar* path, gboolean readable,
|
|||
|
||||
#define MU_XAPIAN_CATCH_BLOCK_RETURN(R) \
|
||||
catch (const Xapian::Error &err) { \
|
||||
g_warning ("%s: caught xapian exception '%s' (%s)", \
|
||||
__FUNCTION__, err.get_msg().c_str(), \
|
||||
err.get_error_string()); \
|
||||
g_warning ("%s: caught xapian exception '%s'", \
|
||||
__FUNCTION__, err.get_msg().c_str()); \
|
||||
return (R); \
|
||||
} catch (...) { \
|
||||
g_warning ("%s: caught exception", __FUNCTION__); \
|
||||
|
|
Loading…
Reference in New Issue