add an error message for "unknown error"

This commit is contained in:
Felix Fietkau 2011-09-05 03:20:07 +02:00
parent 24505f172a
commit cc82d89995
2 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@ const char *__ubus_strerror[__UBUS_STATUS_LAST] = {
[UBUS_STATUS_PERMISSION_DENIED] = "Permission denied",
[UBUS_STATUS_TIMEOUT] = "Request timed out",
[UBUS_STATUS_NOT_SUPPORTED] = "Operation not supported",
[UBUS_STATUS_UNKNOWN_ERROR] = "Unknown error",
};
static struct blob_buf b;

View file

@ -86,6 +86,7 @@ enum ubus_msg_status {
UBUS_STATUS_PERMISSION_DENIED,
UBUS_STATUS_TIMEOUT,
UBUS_STATUS_NOT_SUPPORTED,
UBUS_STATUS_UNKNOWN_ERROR,
__UBUS_STATUS_LAST
};