[epiphany/gnome-3-22] history-service: Don't crash if database is locked



commit e101530c3f029d0c828a93f94687821bf4c34d9d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Mar 1 07:45:06 2017 -0600

    history-service: Don't crash if database is locked
    
    Yeah this is really bad, but let's not make it fatal. I changed this in
    3f76e6e5d45e4be973653f530e23c5ce2667d079 but I'm not sure if it was
    intentional. It doesn't look like it, because I don't like leaving
    unreachable code after calling g_error(). I think I was probably just
    considering the change and forgot to turn it back to g_warning().

 lib/history/ephy-history-service.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c
index 0f12e6e..594b98e 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -366,7 +366,7 @@ ephy_history_service_open_transaction (EphyHistoryService *self)
 
   ephy_sqlite_connection_begin_transaction (self->history_database, &error);
   if (error != NULL) {
-    g_error ("Could not open history database transaction: %s", error->message);
+    g_warning ("Could not open history database transaction: %s", error->message);
     g_error_free (error);
   }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]