]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: Improve commit invalid base message
authorMax Reitz <mreitz@redhat.com>
Thu, 1 Dec 2016 02:05:08 +0000 (03:05 +0100)
committerMax Reitz <mreitz@redhat.com>
Sat, 11 Feb 2017 23:47:41 +0000 (00:47 +0100)
commit6b33f3ae8b79726ef0812597b8a83c3e82d31514
tree15aa8a787d7cc367a904fdeecd64e016d85318a1
parentb135233b0da2b20af4cabc7663e0b65ae896b75f
qemu-img: Improve commit invalid base message

When trying to invoke qemu-img commit with a base image file name that
is not part of the top image's backing chain, the user receives a rather
plain "Base not found" error message. This is not really helpful because
it does not explain what "not found" means, potentially leaving the user
wondering why qemu cannot find a file despite it clearly existing in the
file system.

Improve the error message by clarifying that "not found" means "not
found in the top image's backing chain".

Reported-by: Ala Hino <ahino@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20161201020508.24417-1-mreitz@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img.c