luci-base: update coxpcall() implementation, fix runtime error reporting
authorJo-Philipp Wich <jo@mein.io>
Thu, 31 May 2018 15:41:40 +0000 (17:41 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 31 May 2018 15:45:49 +0000 (17:45 +0200)
commit298d164dd7a3bce42dc37fab238d28fab4708582
treeff31d547fb5c4e0cd120a06f341e6bdc8469d982
parent79d793dffe7b67220fd38fc447bd72403c032b93
luci-base: update coxpcall() implementation, fix runtime error reporting

Sync our coxpcall() implementation to the newest upstream version in order to
get access to the inner backtrace information and propagate these traces to
the browser in luci.dispatcher.dispatch().

This should make tracking down runtime errors much easier.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/dispatcher.lua
modules/luci-base/luasrc/util.lua