s
if (error && error.errorcode) {
    $('#title').innerHTML = error.errorcode
    let errorHtml = ('<div class="alert alert-danger m-3">' + error.message +
        (error.stacktrace ?
            '<div><button class="btn btn-link btn-stacktrace" style="margin-left: -1em" onclick="showStackTrace()">' +
            '<i class="svg-chevron-right svg-lg mb-1" title="expand"></i>StackTrace</button>' +
            '<div class="stacktrace" style="display:none">' + error.stacktrace + '</div></div>' : '') +
 