From 3e81be3c1ee33b5537f7ee04b3d1ae9f2262790c Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 7 Jan 2010 08:42:01 +0200 Subject: [PATCH] * mu-util: improve xapian exception error logging --- src/mu-util.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mu-util.h b/src/mu-util.h index 5995e17c..d87cc41e 100644 --- a/src/mu-util.h +++ b/src/mu-util.h @@ -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__); \