Comments
Patch
qemu-img: improve error reporting
Use strerror to provide a better error message when qemu-img fails.
https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/418112
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
@@ -368,7 +368,7 @@ static int img_create(int argc, char **a
} else if (ret == -EFBIG) {
error("The image size is too large for file format '%s'", fmt);
} else {
- error("Error while formatting");
+ error("Error while formatting (%s)", strerror(-ret));
}
}
return 0;