[gnome-boxes] libvirt-machine: More specific error on start failing
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine: More specific error on start failing
- Date: Mon, 1 Sep 2014 23:16:47 +0000 (UTC)
commit 109bae76a9baa7cf55a555942d2232a4e3e9e5e6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 1 21:03:29 2014 +0100
libvirt-machine: More specific error on start failing
src/libvirt-machine.vala | 4 ++--
src/util.vala | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 77df4fb..cd58be5 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -541,9 +541,9 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
debug ("starting of %s was cancelled", name);
} catch (GLib.Error error) {
if (restore)
- throw new Boxes.Error.RESTORE_FAILED ("Restore failed");
+ throw new Boxes.Error.RESTORE_FAILED (error.message);
else
- throw error;
+ throw new Boxes.Error.START_FAILED (error.message);
}
}
}
diff --git a/src/util.vala b/src/util.vala
index ccb29fd..7f158f4 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -5,6 +5,7 @@ using Config;
public errordomain Boxes.Error {
INVALID,
RESTORE_FAILED,
+ START_FAILED,
COMMAND_FAILED
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]