Skip to content
Snippets Groups Projects
Commit 87b222a2 authored by Arkerthan's avatar Arkerthan
Browse files

Display current passage in error messages as well.

This is to make sure bad quality big reports have more data to go on.
parent 5398a7e6
No related branches found
No related tags found
No related merge requests found
...@@ -475,7 +475,8 @@ App.UI.DOM.formatException = function formatException(ex, recursion = false) { ...@@ -475,7 +475,8 @@ App.UI.DOM.formatException = function formatException(ex, recursion = false) {
function render() { function render() {
const fragment = document.createDocumentFragment(); const fragment = document.createDocumentFragment();
App.UI.DOM.appendNewElement("p", fragment, `${ex.name}: ${ex.message}; ${Config.saves.version}`, ["bold", "error"]); App.UI.DOM.appendNewElement("p", fragment,
`${ex.name}: ${ex.message}; Passage: ${passage()}; Version: ${Config.saves.version}`, ["bold", "error"]);
const p = document.createElement("p"); const p = document.createElement("p");
const lines = ex.stack.split("\n"); const lines = ex.stack.split("\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment