When uci_set_confdir fails we should say so.

Signed-off-by: Petr Štetiar <[email protected]>
---
 lua/uci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua/uci.c b/lua/uci.c
index f4dce89b7c9f..323f81a68c17 100644
--- a/lua/uci.c
+++ b/lua/uci.c
@@ -1006,7 +1006,7 @@ uci_lua_cursor(lua_State *L)
                case 1:
                        if (lua_isstring(L, 1) &&
                                (uci_set_confdir(*u, luaL_checkstring(L, 1)) != 
UCI_OK))
-                               return luaL_error(L, "Unable to set savedir");
+                               return luaL_error(L, "Unable to set confdir");
                        break;
                default:
                        break;

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to