From bd7fde99af3df59c5ec96184b2649b4308250b24 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 10 Sep 2019 19:11:41 +0200 Subject: fixup Fix some warnings --- libdino/src/service/database.vala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libdino/src/service') diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index 604fcdcc..60f1b52c 100644 --- a/libdino/src/service/database.vala +++ b/libdino/src/service/database.vala @@ -259,8 +259,7 @@ public class Database : Qlite.Database { message.type=conversation.type+1 and (message.counterpart_resource=conversation.resource or message.type != 3)"""); } catch (Error e) { - stderr.printf("Failed to upgrade to database version 8: %s\n", e.message); - Process.exit(-1); + error("Failed to upgrade to database version 8: %s", e.message); } } if (oldVersion < 9) { @@ -277,8 +276,7 @@ public class Database : Qlite.Database { message.body in (select info from file_transfer where info not null) or message.id in (select info from file_transfer where info not null)"""); } catch (Error e) { - stderr.printf("Failed to upgrade to database version 8: %s\n", e.message); - Process.exit(-1); + error("Failed to upgrade to database version 9: %s", e.message); } } } -- cgit v1.2.3-70-g09d2