[epiphany] history-service: Don't crash if database is locked
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] history-service: Don't crash if database is locked
- Date: Wed, 1 Mar 2017 13:46:38 +0000 (UTC)
commit 32ca75ad47e9ab2a46c4efb44a06a20b0214bd16
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 31301eb..ca003fe 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -369,7 +369,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]