add an error message for "unknown error"
authorFelix Fietkau <nbd@openwrt.org>
Mon, 5 Sep 2011 01:20:07 +0000 (03:20 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 5 Sep 2011 01:20:07 +0000 (03:20 +0200)
libubus.c
ubusmsg.h

index 5c6bd8a3cc196ac1481af896b31cd0e79c9101b6..aed615d184c666b4d96801e4eed3fda387a8997b 100644 (file)
--- a/libubus.c
+++ b/libubus.c
@@ -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;
index 794abc7fd2dae15a9e928c7bb69aa30bc67b621a..a0681e1f9b50c58277e32b3a6c0cc11248e16c61 100644 (file)
--- a/ubusmsg.h
+++ b/ubusmsg.h
@@ -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
 };