aboutsummaryrefslogtreecommitdiff
path: root/bbot/machine.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/machine.cxx')
-rw-r--r--bbot/machine.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/bbot/machine.cxx b/bbot/machine.cxx
index 2f1e56b..8bc6359 100644
--- a/bbot/machine.cxx
+++ b/bbot/machine.cxx
@@ -383,11 +383,8 @@ namespace bbot
}
catch (const process_error& e)
{
- diag_record dr; if (fh) dr << fail; else dr << error;
- dr << "unable to execute " << kvm << ": " << e;
+ fail (fh) << "unable to execute " << kvm << ": " << e << endf;
}
-
- throw failed ();
}
void kvm_machine::
@@ -453,11 +450,8 @@ namespace bbot
}
catch (const system_error& e)
{
- diag_record dr; if (fh) dr << fail; else dr << error;
- dr << "unable to communicate with qemu monitor: " << e;
+ fail (fh) << "unable to communicate with qemu monitor: " << e;
}
-
- throw failed ();
}
unique_ptr<machine>