From: Kevin Wolf Date: Tue, 1 Mar 2011 09:48:12 +0000 (+0100) Subject: Add error message for loading snapshot without VM state X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e11480db7ff15a9e878f6b3cc1199b439bf7c825;p=qemu.git Add error message for loading snapshot without VM state It already fails, but it didn't tell the user why. Signed-off-by: Kevin Wolf Reviewed-by: Juan Quintela --- diff --git a/savevm.c b/savevm.c index 60d2f2a547..d1b9b4a413 100644 --- a/savevm.c +++ b/savevm.c @@ -2021,6 +2021,8 @@ int load_vmstate(const char *name) if (ret < 0) { return ret; } else if (sn.vm_state_size == 0) { + error_report("This is a disk-only snapshot. Revert to it offline " + "using qemu-img."); return -EINVAL; }