luci-app-bmx6: return if json problem detected
Signed-off-by: Bob Ham <rah@settrans.net>
This commit is contained in:
parent
258c3c5778
commit
93fdb120de
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ m = Map("bmx6", "bmx6")
|
|||
-- Getting json and Checking if bmx6-json is avaiable
|
||||
local options = bmx6json.get("options")
|
||||
if options == nil or options.OPTIONS == nil then
|
||||
m.message = "bmx6-json plugin is not running or some mistake in luci-bmx6 configuration, check /etc/config/luci-bmx6"
|
||||
m.message = "bmx6-json plugin is not running or some mistake in luci-bmx6 configuration, check /etc/config/luci-bmx6"
|
||||
return m
|
||||
else
|
||||
options = options.OPTIONS
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue