mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
FEATURE: Add "Recent Errors" tab and improved error modal (#2169)
This commit is contained in:
committed by
GitHub
parent
cf72937faf
commit
18f84396e2
@@ -82,7 +82,7 @@ export function getErrorMessageWithStackAndCause(error: unknown, prefix = ""): s
|
||||
const errorData = parseUnknownError(error);
|
||||
let errorMessage = `${prefix}${errorData.errorAsString}`;
|
||||
if (errorData.stack) {
|
||||
errorMessage += `\nStack: ${errorData.stack}`;
|
||||
errorMessage += `\n\nStack: ${errorData.stack}`;
|
||||
}
|
||||
if (errorData.causeAsString) {
|
||||
errorMessage += `\nError cause: ${errorData.causeAsString}`;
|
||||
|
||||
Reference in New Issue
Block a user