[OpenWrt-Devel] [PATCH uci 11/18] lua: fix copy&paste in error string
Petr Štetiar
ynezz at true.cz
Mon Nov 4 19:36:50 EST 2019
When uci_set_confdir fails we should say so.
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
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
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list