From: Petr Štetiar Date: Mon, 4 Nov 2019 19:09:30 +0000 (+0100) Subject: lua: fix copy&paste in error string X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b549cc050de17ec2263fd97a0abc0ae3564ad6c;p=oweals%2Fuci.git lua: fix copy&paste in error string When uci_set_confdir fails we should say so. Signed-off-by: Petr Štetiar --- diff --git a/lua/uci.c b/lua/uci.c index f4dce89..323f81a 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;