Port of a fix "upstream": commit b38f172ceb in template-live-editor.
6JKFAHNLTPQBVMHTKSOVOA25MAHXXI6GVWVGOUF75EHK23GXOIKAC
IZGZEWFGSMVXXFGMBITHUZUSFAJGWZNBE7LR7PCZ52P2JEO5HAUQC
3QNOKBFMKBGXBVJIRHR2444JRRMBTABHE4674NR3DT67RRM2X6GAC
Error_message = debug.traceback('Error: ' .. tostring(err), --[[stack frame]]2):gsub('\n[^\n]+$', '')
Error_message = debug.traceback('Error: ' .. tostring(err), --[[stack frame]]2)