Message ID | 1258592736-10252-10-git-send-email-lcapitulino@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/qerror.c b/qerror.c index 10b0939..a12e7f7 100644 --- a/qerror.c +++ b/qerror.c @@ -40,6 +40,10 @@ static const QType qerror_type = { * "running out of foo: %(foo)%%" */ const QErrorStringTable qerror_table[] = { + { + .error_fmt = QERR_DEVICE_NOT_FOUND, + .desc = "The %(device) device has not been found", + }, {} }; diff --git a/qerror.h b/qerror.h index 01703ee..413acc6 100644 --- a/qerror.h +++ b/qerror.h @@ -38,5 +38,7 @@ QError *qobject_to_qerror(const QObject *obj); /* * QError class list */ +#define QERR_DEVICE_NOT_FOUND \ + "{ 'class': 'DeviceNotFound', 'data': { 'device': %s } }" #endif /* QERROR_H */
New class for device not found errors. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- qerror.c | 4 ++++ qerror.h | 2 ++ 2 files changed, 6 insertions(+), 0 deletions(-)