You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
1.3 KiB

div.modal.fade(id="pageErrorsModal" role="dialog" aria-hidden="true")
div.modal-dialog.modal-xl(role="document")
div.modal-content
div.modal-header
h5.modal-title Page Errors
button.close(type="button" data-dismiss="modal" aria-label="Close")
span(aria-hidden="true") ×
div.modal-body
if (false)
pre
code.json #{JSON.stringify(pageErrors, null, 4)}
if (true)
each item, itemIndex in pageErrors
div.card.shadow-sm(class=(itemIndex < (pageErrors.length - 1) ? "mb-3" : false))
div.card-body
h6 Error ##{(itemIndex + 1).toLocaleString()}
hr
//pre
// code.json.bg-light #{JSON.stringify(item.error, null, 4)}
pre
code.json.bg-light #{JSON.stringify(item, null, 4)}
if (item.error.userData)
div.mb-3
h4.h6 Error Data
div.highlight
pre
code.json.bg-light #{JSON.stringify(item.error.userData, null, 4)}
if (item.error.stack)
h6 Stacktrace
- var stackFirstNLines = item.error.stack.split("\n").slice(0, 7).join("\n");
div.highlight
pre
code.json.bg-light #{stackFirstNLines}
div.modal-footer
button.btn.btn-secondary(type="button" data-dismiss="modal") Close