From 23879741fb3ad5c022879f407b9b6c677632183d Mon Sep 17 00:00:00 2001 From: NewUse <7342068+NewUse@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:14:51 +0300 Subject: [PATCH] Update zapret-tpws.lua add error message --- .../luci-app-zapret-tpws/luasrc/model/cbi/zapret-tpws.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/compile/openwrt/package/zapret/luci-app-zapret-tpws/luasrc/model/cbi/zapret-tpws.lua b/docs/compile/openwrt/package/zapret/luci-app-zapret-tpws/luasrc/model/cbi/zapret-tpws.lua index e105d19..ff69f51 100644 --- a/docs/compile/openwrt/package/zapret/luci-app-zapret-tpws/luasrc/model/cbi/zapret-tpws.lua +++ b/docs/compile/openwrt/package/zapret/luci-app-zapret-tpws/luasrc/model/cbi/zapret-tpws.lua @@ -11,7 +11,7 @@ function opt.validate(self, value) -- Check each word for _, word in ipairs(words) do if not word:sub(1, 2) == "--" then - return nil, translate("Error: Not all options start with double dash.") + return nil, opt.error = translate("Error: Not all options start with double dash.") end end