Browse Source
Update zapret-tpws.lua
add error message
pull/429/head
NewUse
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
-- Check each word |
|
|
for _, word in ipairs(words) do |
|
|
for _, word in ipairs(words) do |
|
|
if not word:sub(1, 2) == "--" then |
|
|
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 |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|