[gnome-boxes/wip/generic-gnome-cont: 2/4] os-db: More specific error for DB load failure
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/generic-gnome-cont: 2/4] os-db: More specific error for DB load failure
- Date: Thu, 3 Oct 2013 01:06:35 +0000 (UTC)
commit 4e8041fb1de1ea8d99e3d2abb188f466b908ae88
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sat Sep 28 15:34:58 2013 +0300
os-db: More specific error for DB load failure
src/os-database.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/os-database.vala b/src/os-database.vala
index 57be6c1..b37df23 100644
--- a/src/os-database.vala
+++ b/src/os-database.vala
@@ -4,6 +4,7 @@ using Osinfo;
public errordomain Boxes.OSDatabaseError {
NON_BOOTABLE,
+ DB_LOADING_FAILED,
UNKNOWN_OS_ID,
UNKNOWN_MEDIA_ID
}
@@ -72,7 +73,7 @@ private class Boxes.OSDatabase : GLib.Object {
public async Os get_os_by_id (string id) throws OSDatabaseError {
if (!yield ensure_db_loaded ())
- throw new OSDatabaseError.UNKNOWN_OS_ID ("Unknown OS ID '%s'", id);
+ throw new OSDatabaseError.DB_LOADING_FAILED ("Failed to load OS database");
var os = db.get_os (id);
if (os == null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]