function RENDER(request : any) { var error := request.call.error var signal_name := string(error.signal_name) request.out.headers["Content-Type"] = "text/html; charset=utf-8" print("Something went wrong

Something went wrong

", html_escape(string(error.title)), "

Request: ", html_escape(string(error.request_uri)), "

" ) var details := string(error.details) if string(error.type) == "compile_error" { print("

Unit: ", html_escape(string(error.unit)), "

" ) var compiler_messages := string(error.compiler_messages) if compiler_messages != "" { print("
", html_escape(compiler_messages), "
") } } else { if details != "" { print("

Details: ", html_escape(details), "

") } } if signal_name != "" { print("

Signal: ", html_escape(signal_name), "

") } var stack := string(error.trace) if stack != "" { print("
", html_escape(stack), "
") } print("
") }