Browse Source

lua: fix copy&paste in error string

When uci_set_confdir fails we should say so.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Petr Štetiar 4 years ago
parent
commit
2b549cc050
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lua/uci.c

+ 1 - 1
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;