From 93fdb120de99369efa99ad99a1b8ff255c541eaa Mon Sep 17 00:00:00 2001 From: Pau Escrich Date: Tue, 16 Feb 2016 19:23:07 +0100 Subject: [PATCH] luci-app-bmx6: return if json problem detected Signed-off-by: Bob Ham --- luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/main.lua b/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/main.lua index d4e0745..8ff3520 100644 --- a/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/main.lua +++ b/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/main.lua @@ -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 -- 2.30.2