summaryrefslogtreecommitdiffhomepage
path: root/libs/web
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-29 18:27:12 +0000
committerSteven Barth <steven@midlink.org>2008-05-29 18:27:12 +0000
commit8687547e47b7c90099013b903e89113300903d27 (patch)
tree215ae5a896e1806fb15724be4b41b78faf3fe8a1 /libs/web
parent7f995fd0b68cf9416c3a1a74252cfef9f84f182d (diff)
* Bugfixes
* Moved cbi.js into the right directory * Added more debugging to dispatcher * Introduced about page
Diffstat (limited to 'libs/web')
-rw-r--r--libs/web/luasrc/dispatcher.lua9
1 files changed, 8 insertions, 1 deletions
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