diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-03 12:22:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-03 12:22:10 +0200 |
commit | 540add1be1e985d8b3e2ef22266861d28d397a8d (patch) | |
tree | da411dd3abf139a24474dcb24a27685fd62b85dd | |
parent | 808135febf441499dfbbdcfc2a9ca3bf7fa2e684 (diff) |
Improve diagnostics
-rw-r--r-- | bbot/agent/machine.cxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/bbot/agent/machine.cxx b/bbot/agent/machine.cxx index 1ce831e..89da981 100644 --- a/bbot/agent/machine.cxx +++ b/bbot/agent/machine.cxx @@ -441,7 +441,8 @@ namespace bbot } catch (const io_error& e) { - fail << "unable to initialize QMP: " << e; + fail << "unable to initialize QMP: " << e << + info << "see " << log; } // Start execution. @@ -452,7 +453,8 @@ namespace bbot } catch (const system_error& e) { - fail << "unable to communicate with qemu monitor: " << e; + fail << "unable to communicate with qemu monitor: " << e << + info << "see " << log; } } @@ -504,7 +506,8 @@ namespace bbot if (r) return true; - fail << "unable to communicate with qemu monitor: " << e; + fail << "unable to communicate with qemu monitor: " << e << + info << "see " << log; } return wait (seconds); @@ -525,7 +528,8 @@ namespace bbot if (wait (t, fh)) return; - fail (fh) << "unable to communicate with qemu monitor: " << e; + fail (fh) << "unable to communicate with qemu monitor: " << e << + info << "see " << log; } wait (fh); @@ -540,7 +544,8 @@ namespace bbot } catch (const system_error& e) { - fail (fh) << "unable to communicate with qemu monitor: " << e; + fail (fh) << "unable to communicate with qemu monitor: " << e << + info << "see " << log; } } @@ -575,7 +580,8 @@ namespace bbot } catch (const process_error& e) { - fail (fh) << "unable to wait for " << kvm << ": " << e << endf; + fail (fh) << "unable to wait for " << kvm << ": " << e << + info << "see " << log << endf; } } |