summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-11-04 20:09:30 +0100
committerPetr Štetiar <ynezz@true.cz>2019-11-14 17:11:34 +0100
commit2b549cc050de17ec2263fd97a0abc0ae3564ad6c (patch)
tree44dff582abeafee35574ac0f2f0e97a94581853a
parentf5dd5217d6277739b6208771b45787cddd323576 (diff)
downloaduci-2b549cc050de17ec2263fd97a0abc0ae3564ad6c.tar.gz
lua: fix copy&paste in error string
When uci_set_confdir fails we should say so. Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--lua/uci.c2
1 files changed, 1 insertions, 1 deletions
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;