diff mbox series

[OpenWrt-Devel,uci,11/18] lua: fix copy&paste in error string

Message ID 20191105003657.16540-12-ynezz@true.cz
State Accepted
Delegated to: Petr Štetiar
Headers show
Series fixes and improvements | expand

Commit Message

Petr Štetiar Nov. 5, 2019, 12:36 a.m. UTC
When uci_set_confdir fails we should say so.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 lua/uci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;