Unsuccessful gnomevfsresult_to_errno() is no longer fatal.
authorlace <>
Mon, 2 Jan 2006 02:32:32 +0000 (02:32 +0000)
committerlace <>
Mon, 2 Jan 2006 02:32:32 +0000 (02:32 +0000)
 - Bugreported by: Frederic L. W. Meunier
 - Too many 'GnomeVFSResult's have no corresponding 'errno' value.

src/client/fuse/gnomevfsresult.c

index d0e239e..7d02189 100644 (file)
@@ -70,7 +70,9 @@ int r;
 
        gnomevfsresult_to_errno_hash_init();
        if (!(r=GPOINTER_TO_INT(g_hash_table_lookup(gnomevfsresult_to_errno_hash,GINT_TO_POINTER(gnomevfsresult))))) {
-               g_assert_not_reached();
+#if 0  /* Too many 'GnomeVFSResult's have no corresponding 'errno' value: */
+               g_error(_("Unable to translate GnomeVFSResult %d back to errno"),(int)gnomevfsresult);
+#endif
                return EINVAL;
                }
        return r;