|
@@ -3767,6 +3767,9 @@ static int img_rebase(int argc, char **argv)
|
|
|
if (ret == -ENOSPC) {
|
|
|
error_report("Could not change the backing file to '%s': No "
|
|
|
"space left in the file header", out_baseimg);
|
|
|
+ } else if (ret == -EINVAL && out_baseimg && !out_basefmt) {
|
|
|
+ error_report("Could not change the backing file to '%s': backing "
|
|
|
+ "format must be specified", out_baseimg);
|
|
|
} else if (ret < 0) {
|
|
|
error_report("Could not change the backing file to '%s': %s",
|
|
|
out_baseimg, strerror(-ret));
|