diff options
-rw-r--r-- | qerror.c | 4 | ||||
-rw-r--r-- | qerror.h | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -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", + }, {} }; @@ -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 */ |