diff --git a/qerror.c b/qerror.c index d00e5347e1fdb87666c1c761ea581cf5c74e78dc..eb4ce333123ef6fbb162cc7ff8d6bc19f35e2ae0 100644 --- a/qerror.c +++ b/qerror.c @@ -56,6 +56,10 @@ static const QErrorStringTable qerror_table[] = { .error_fmt = QERR_INVALID_PARAMETER_TYPE, .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", diff --git a/qerror.h b/qerror.h index 5fd993146336b3cb3b15c15507066071ab68cd55..5198adf14c5fa1da66f8eb5ce22d9a649dfaa312 100644 --- a/qerror.h +++ b/qerror.h @@ -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 } }"