* mu-util: make warning a bit more user-friendly

This commit is contained in:
Dirk-Jan C. Binnema 2011-01-06 16:22:11 +02:00
parent 9dd93ab668
commit 974f6556fc
1 changed files with 4 additions and 4 deletions

View File

@ -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 (...) { \