aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-03 12:22:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-03 12:22:10 +0200
commit540add1be1e985d8b3e2ef22266861d28d397a8d (patch)
treeda411dd3abf139a24474dcb24a27685fd62b85dd
parent808135febf441499dfbbdcfc2a9ca3bf7fa2e684 (diff)
Improve diagnostics
-rw-r--r--bbot/agent/machine.cxx18
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;
}
}