@@ -201,6 +201,10 @@ static const QErrorStringTable qerror_table[] = {
.desc = "Failed to save VM state (%(reason))",
},
{
+ .error_fmt = QERR_STATEVM_LOAD_FAILED,
+ .desc = "Failed to load VM state (%(reason))",
+ },
+ {
.error_fmt = QERR_TOO_MANY_FILES,
.desc = "Too many open files",
},
@@ -166,6 +166,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_STATEVM_SAVE_FAILED \
"{ 'class': 'StateVmSaveFailed', 'data': { 'reason': %s } }"
+#define QERR_STATEVM_LOAD_FAILED \
+ "{ 'class': 'StateVmLoadFailed', 'data': { 'reason': %s } }"
+
#define QERR_TOO_MANY_FILES \
"{ 'class': 'TooManyFiles', 'data': {} }"
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-)