diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-12-04 15:24:08 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-07 14:04:19 -0600 |
commit | f6d855c50dfd68f33f6dee70e5ccdfb144a2da26 (patch) | |
tree | 38a232c43234e1d1acabdf640cf32acc7f64f077 | |
parent | 6d9fef1a02e6efd51e9ebd0130651ca61f75839b (diff) | |
download | qemu-f6d855c50dfd68f33f6dee70e5ccdfb144a2da26.tar.gz qemu-f6d855c50dfd68f33f6dee70e5ccdfb144a2da26.tar.bz2 qemu-f6d855c50dfd68f33f6dee70e5ccdfb144a2da26.zip |
QError: Add class for invalid passwords
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | qerror.c | 4 | ||||
-rw-r--r-- | qerror.h | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -57,6 +57,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Invalid parameter type, expected: %(expected)", }, { + .error_fmt = QERR_INVALID_PASSWORD, + .desc = "The entered password is invalid", + }, + { .error_fmt = QERR_KVM_MISSING_CAP, .desc = "Using KVM without %(capability), %(feature) unavailable", }, @@ -50,6 +50,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_INVALID_PARAMETER_TYPE \ "{ 'class': 'InvalidParameterType', 'data': { 'name': %s,'expected': %s } }" +#define QERR_INVALID_PASSWORD \ + "{ 'class': 'InvalidPassword', 'data': {} }" + #define QERR_KVM_MISSING_CAP \ "{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }" |