1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-08-26 11:15:10 +02:00

Formatting, npm update

This commit is contained in:
binwiederhier 2023-05-24 21:44:12 -04:00
parent d1e59fe08c
commit a90bd4cd06
3 changed files with 172 additions and 579 deletions
web/src/components

View file

@ -45,9 +45,7 @@ class ErrorBoundaryImpl extends React.Component {
// Fetch additional info and a better stack trace
StackTrace.fromError(error).then((stack) => {
console.error("[ErrorBoundary] Stacktrace fetched", stack);
const stackString = stack
.map((el) => ` at ${el.functionName} (${el.fileName}:${el.columnNumber}:${el.lineNumber})`)
.join("\n");
const stackString = stack.map((el) => ` at ${el.functionName} (${el.fileName}:${el.columnNumber}:${el.lineNumber})`).join("\n");
const niceStack = `${error.toString()}\n${stackString}`;
this.setState({ niceStack });
});