lua: fix copy&paste in error string
authorPetr Štetiar <ynezz@true.cz>
Mon, 4 Nov 2019 19:09:30 +0000 (20:09 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 14 Nov 2019 16:11:34 +0000 (17:11 +0100)
When uci_set_confdir fails we should say so.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
lua/uci.c

index f4dce89b7c9f2703840da7f63ab9905d2d58bddc..323f81a68c17882e33a33455603153d989f18093 100644 (file)
--- 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;