From 974f6556fc2651529d6945415c4e67477d0de36e Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 6 Jan 2011 16:22:11 +0200 Subject: [PATCH] * mu-util: make warning a bit more user-friendly --- src/mu-util.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mu-util.h b/src/mu-util.h index c7093615..60a9f4e8 100644 --- a/src/mu-util.h +++ b/src/mu-util.h @@ -214,7 +214,7 @@ unsigned char mu_util_get_dtype_with_lstat (const char *path); */ #define MU_XAPIAN_CATCH_BLOCK \ catch (const Xapian::Error &xerr) { \ - g_critical ("%s: caught xapian exception '%s'", \ + g_critical ("%s: xapian error '%s'", \ __FUNCTION__, xerr.get_msg().c_str()); \ } catch (...) { \ g_critical ("%s: caught exception", __FUNCTION__); \ @@ -223,7 +223,7 @@ unsigned char mu_util_get_dtype_with_lstat (const char *path); #define MU_XAPIAN_CATCH_BLOCK_G_ERROR(GE,E) \ catch (const Xapian::Error &xerr) { \ g_set_error ((GE),0,(E), \ - "%s: caught xapian exception '%s'", \ + "%s: xapian error '%s'", \ __FUNCTION__, xerr.get_msg().c_str()); \ } catch (...) { \ g_set_error ((GE),0,(MU_ERROR_INTERNAL), \ @@ -234,7 +234,7 @@ unsigned char mu_util_get_dtype_with_lstat (const char *path); #define MU_XAPIAN_CATCH_BLOCK_RETURN(R) \ catch (const Xapian::Error &xerr) { \ - g_critical ("%s: caught xapian exception '%s'", \ + g_critical ("%s: xapian error '%s'", \ __FUNCTION__, xerr.get_msg().c_str()); \ return (R); \ } catch (...) { \ @@ -245,7 +245,7 @@ unsigned char mu_util_get_dtype_with_lstat (const char *path); #define MU_XAPIAN_CATCH_BLOCK_G_ERROR_RETURN(GE,E,R) \ catch (const Xapian::Error &xerr) { \ g_set_error ((GE),0,(E), \ - "%s: caught xapian exception '%s'", \ + "%s: xapian error '%s'", \ __FUNCTION__, xerr.get_msg().c_str()); \ return (R); \ } catch (...) { \