From 0b9428d3a063414df8da6946cebdef5539613bbc Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 17 Jul 2012 20:58:03 +0200 Subject: Add logging when an exception is caught --- src/unattended-installer.vala | 1 + src/winxp-installer.vala | 1 + 2 files changed, 2 insertions(+) diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala index 7d72952..ad23e9c 100644 --- a/src/unattended-installer.vala +++ b/src/unattended-installer.vala @@ -149,6 +149,7 @@ private abstract class Boxes.UnattendedInstaller: InstallerMedia { foreach (var unattended_file in unattended_files) yield unattended_file.copy (cancellable); } catch (GLib.Error error) { + debug ("caught GLib.Error: %s", error.message); clean_up (); // An error occurred when trying to setup unattended installation, but it's likely that a non-unattended installation // will work. When this happens, just disable unattended installs, and let the caller decide if it wants to retry a diff --git a/src/winxp-installer.vala b/src/winxp-installer.vala index f1729e5..0296b89 100644 --- a/src/winxp-installer.vala +++ b/src/winxp-installer.vala @@ -90,6 +90,7 @@ private class Boxes.WinXPInstaller: WindowsInstaller { // the Windows installer to be able to use a virtio disk controller has_viostor_drivers = have_viostor; } catch (GLib.Error e) { + debug ("caught GLib.Error: %s", e.message); has_viostor_drivers = false; } } -- cgit v1.2.3