r16669 - gnucash/trunk/src/bin - Change some g_error's to g_warnings, which won't abend the app.

Josh Sled jsled at cvs.gnucash.org
Sun Dec 16 11:41:33 EST 2007


Author: jsled
Date: 2007-12-16 11:41:33 -0500 (Sun, 16 Dec 2007)
New Revision: 16669
Trac: http://svn.gnucash.org/trac/changeset/16669

Modified:
   gnucash/trunk/src/bin/gnucash-bin.c
Log:
Change some g_error's to g_warnings, which won't abend the app.


Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c	2007-12-16 16:40:52 UTC (rev 16668)
+++ gnucash/trunk/src/bin/gnucash-bin.c	2007-12-16 16:41:33 UTC (rev 16669)
@@ -361,11 +361,11 @@
     }
     if (!gnc_engine_is_initialized()) {
         /* On Windows this check used to fail anyway, see
-	   https://lists.gnucash.org/pipermail/gnucash-devel/2006-September/018529.html
-	   but more recently it seems to work as expected
-	   again. 2006-12-20, cstim. */
-        g_error("GnuCash engine failed to initialize.  Exiting.\n");
-        exit(0);
+         * https://lists.gnucash.org/pipermail/gnucash-devel/2006-September/018529.html
+         * but more recently it seems to work as expected
+         * again. 2006-12-20, cstim. */
+        g_warning("GnuCash engine failed to initialize.  Exiting.\n");
+        exit(1);
     }
 }
 
@@ -409,7 +409,7 @@
 
     qof_session_destroy(session);
     if (!SCM_NFALSEP(scm_result)) {
-        g_error("Failed to add quotes to %s.", add_quotes_file);
+        g_warning("Failed to add quotes to %s.", add_quotes_file);
         goto fail;
     }
 
@@ -418,7 +418,7 @@
     return;
  fail:
     if (session && qof_session_get_error(session) != ERR_BACKEND_NO_ERR)
-        g_error("Session Error: %s", qof_session_get_error_message(session));
+        g_warning("Session Error: %s", qof_session_get_error_message(session));
     qof_event_resume();
     gnc_shutdown(1);
 }



More information about the gnucash-changes mailing list