aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/database.vala
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src/service/database.vala')
-rw-r--r--libdino/src/service/database.vala6
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);
}
}
}