diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-08-23 18:53:38 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-08-23 18:53:48 +0100 |
commit | f15961911316460f7d45342d63c2d784a483f0d1 (patch) | |
tree | b781bbc182a8be799b61399b4c265cfd7e2b7807 | |
parent | a24652c7b27e8494268ccb6c9a5a2e5541ba5efd (diff) | |
download | libguestfs-f15961911316460f7d45342d63c2d784a483f0d1.tar.gz libguestfs-f15961911316460f7d45342d63c2d784a483f0d1.tar.xz libguestfs-f15961911316460f7d45342d63c2d784a483f0d1.zip |
test_qemu: Improve the error message.
Note that errno is probably not set to a useful value here, so there
is not much point recording it.
-rw-r--r-- | src/launch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/launch.c b/src/launch.c index 11d1acff..03ad39b4 100644 --- a/src/launch.c +++ b/src/launch.c @@ -1083,7 +1083,8 @@ test_qemu (guestfs_h *g) * probably indicates that the qemu binary is missing. */ if (test_qemu_cmd (g, cmd, &g->qemu_help) == -1) { - perrorf (g, _("%s: command failed: If qemu is located on a non-standard path, try setting the LIBGUESTFS_QEMU environment variable."), cmd); + error (g, _("command failed: %s\n\nIf qemu is located on a non-standard path, try setting the LIBGUESTFS_QEMU\nenvironment variable. There may also be errors printed above."), + cmd); return -1; } |