[epiphany/wip/sync] Profile migrator: remove extra newlines in warning messages
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/sync] Profile migrator: remove extra newlines in warning messages
- Date: Sun, 6 Aug 2017 13:13:10 +0000 (UTC)
commit d454458836b9eb1aa5521bddccd333de43a163cd
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Aug 6 08:12:42 2017 -0500
Profile migrator: remove extra newlines in warning messages
src/profile-migrator/ephy-profile-migrator.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/profile-migrator/ephy-profile-migrator.c b/src/profile-migrator/ephy-profile-migrator.c
index 5af795b..cf53415 100644
--- a/src/profile-migrator/ephy-profile-migrator.c
+++ b/src/profile-migrator/ephy-profile-migrator.c
@@ -231,7 +231,7 @@ migrate_new_urls_table (void)
ephy_sqlite_connection_open (history_database, filename, &error);
if (error) {
- g_warning ("Failed to open history database: %s\n", error->message);
+ g_warning ("Failed to open history database: %s", error->message);
g_error_free (error);
g_free (filename);
return;
@@ -242,7 +242,7 @@ migrate_new_urls_table (void)
"ADD COLUMN thumbnail_update_time INTEGER DEFAULT 0",
&error);
if (error) {
- g_warning ("Failed to add new column to table in history backend: %s\n",
+ g_warning ("Failed to add new column to table in history backend: %s",
error->message);
g_error_free (error);
error = NULL;
@@ -252,7 +252,7 @@ migrate_new_urls_table (void)
"ADD COLUMN hidden_from_overview INTEGER DEFAULT 0",
&error);
if (error) {
- g_warning ("Failed to add new column to table in history backend: %s\n",
+ g_warning ("Failed to add new column to table in history backend: %s",
error->message);
g_error_free (error);
error = NULL;
@@ -688,7 +688,7 @@ migrate_bookmarks (void)
doc = xmlParseFile (filename);
if (doc == NULL) {
- g_warning ("Failed to re-import the bookmarks. All bookmarks lost!\n");
+ g_warning ("Failed to re-import the bookmarks. All bookmarks lost!");
goto out;
}
@@ -1069,7 +1069,7 @@ migrate_history_to_firefox_sync_history (void)
history_db = ephy_sqlite_connection_new (EPHY_SQLITE_CONNECTION_MODE_READWRITE);
ephy_sqlite_connection_open (history_db, history_filename, &error);
if (error) {
- g_warning ("Failed to open history database: %s\n", error->message);
+ g_warning ("Failed to open history database: %s", error->message);
goto out;
}
@@ -1077,7 +1077,7 @@ migrate_history_to_firefox_sync_history (void)
sql_query = "ALTER TABLE urls ADD COLUMN sync_id LONGVARCAR";
ephy_sqlite_connection_execute (history_db, sql_query, &error);
if (error) {
- g_warning ("Failed to add new column to urls table: %s", error->message);
+ g_warning ("Failed to add new column to urls table: %s", error->message, error->code);
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]