From e11480db7ff15a9e878f6b3cc1199b439bf7c825 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Tue, 1 Mar 2011 10:48:12 +0100 Subject: 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 --- savevm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'savevm.c') 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; } -- cgit v1.2.3