luci-base: template.lua: fix nil access in string template error handling
authorJo-Philipp Wich <jo@mein.io>
Fri, 19 Jun 2020 12:49:48 +0000 (14:49 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 19 Jun 2020 12:51:49 +0000 (14:51 +0200)
commitc351beea561acafa088a3fd3d82bfec93ee45cd4
tree7fd1a580d7ec300d820b855ce36f1cbf391ac9a9
parent40f28a158278498ce9486916af259c67f1f8544e
luci-base: template.lua: fix nil access in string template error handling

Template strings have no associated name, which led to an attempt to
concat nil with a string when formatting the error message in case of
exceptions.

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