mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 11:10:58 +02:00
engine in ts
This commit is contained in:
@@ -5,17 +5,17 @@ interface IError {
|
||||
lineNumber?: number;
|
||||
}
|
||||
|
||||
export function exceptionAlert(e: IError): void {
|
||||
export function exceptionAlert(e: IError | string): void {
|
||||
console.error(e);
|
||||
dialogBoxCreate(
|
||||
"Caught an exception: " +
|
||||
e +
|
||||
"<br><br>" +
|
||||
"Filename: " +
|
||||
(e.fileName || "UNKNOWN FILE NAME") +
|
||||
((e as any).fileName || "UNKNOWN FILE NAME") +
|
||||
"<br><br>" +
|
||||
"Line Number: " +
|
||||
(e.lineNumber || "UNKNOWN LINE NUMBER") +
|
||||
((e as any).lineNumber || "UNKNOWN LINE NUMBER") +
|
||||
"<br><br>" +
|
||||
"This is a bug, please report to game developer with this " +
|
||||
"message as well as details about how to reproduce the bug.<br><br>" +
|
||||
|
||||
Reference in New Issue
Block a user