luci-app-bmx6: return if json problem detected

Signed-off-by: Bob Ham <rah@settrans.net>
This commit is contained in:
Pau Escrich 2016-02-16 19:23:07 +01:00
parent 258c3c5778
commit 93fdb120de

View file

@ -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