summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/cbi/root/www/luci-static/resources/cbi.js (renamed from libs/cbi/root/www/resources/cbi.js)0
-rw-r--r--libs/web/luasrc/dispatcher.lua9
2 files changed, 8 insertions, 1 deletions
diff --git a/libs/cbi/root/www/resources/cbi.js b/libs/cbi/root/www/luci-static/resources/cbi.js
index a3a47aa45..a3a47aa45 100644
--- a/libs/cbi/root/www/resources/cbi.js
+++ b/libs/cbi/root/www/luci-static/resources/cbi.js
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index fc551a4bd..d075975da 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -220,11 +220,18 @@ function createtree()
if not built_index then
createindex()
end
+
+ require("luci.i18n")
for k, v in pairs(index) do
luci.util.updfenv(v, _M)
luci.util.extfenv(v, "_NAME", k)
- pcall(v)
+
+ local stat, err = pcall(v)
+ if not stat then
+ error500(err)
+ os.exit(1)
+ end
end
built_tree = true