diff options
author | fiaxh <git@lightrise.org> | 2019-09-10 19:11:41 +0200 |
---|---|---|
committer | fiaxh <fiaxh@users.noreply.github.com> | 2019-09-10 19:36:11 +0200 |
commit | bd7fde99af3df59c5ec96184b2649b4308250b24 (patch) | |
tree | 49f67c73f6ecc69bb949ea81b49814c90a13f0bd /libdino | |
parent | d5d305193ce527f1cc3022c406de35d9a85d4ccb (diff) | |
download | dino-bd7fde99af3df59c5ec96184b2649b4308250b24.tar.gz dino-bd7fde99af3df59c5ec96184b2649b4308250b24.zip |
fixup Fix some warnings
Diffstat (limited to 'libdino')
-rw-r--r-- | libdino/src/service/database.vala | 6 |
1 files changed, 2 insertions, 4 deletions
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); } } } |