[gnome-boxes] installed-media: Throw more specific error
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] installed-media: Throw more specific error
- Date: Sat, 21 Dec 2013 14:21:04 +0000 (UTC)
commit 88bc1f1f3f6c6e513b8b7df044b9b69755324125
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sat Dec 21 13:54:02 2013 +0000
installed-media: Throw more specific error
For unsupported file, throw a more specific error.
https://bugzilla.gnome.org/show_bug.cgi?id=720801
src/installed-media.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/installed-media.vala b/src/installed-media.vala
index a0b8f8f..28be17e 100644
--- a/src/installed-media.vala
+++ b/src/installed-media.vala
@@ -46,7 +46,7 @@ private class Boxes.InstalledMedia : Boxes.InstallerMedia {
}
if (!supported)
- throw new Boxes.Error.INVALID (_("Unsupported disk image format."));
+ throw new IOError.NOT_SUPPORTED (_("Unsupported disk image format."));
device_file = path;
from_image = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]