mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
15e3b751da
Since this is a UI only function, when Web Workers are introduced this call chain will not be allowed on the backend.
16 lines
684 B
JavaScript
16 lines
684 B
JavaScript
import { dialogBoxCreate } from "../DialogBox";
|
|
|
|
function exceptionAlert(e) {
|
|
dialogBoxCreate("Caught an exception: " + e + "<br><br>" +
|
|
"Filename: " + (e.fileName || "UNKNOWN FILE NAME") + "<br><br>" +
|
|
"Line Number: " + (e.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>" +
|
|
"If you want to be safe, I suggest refreshing the game WITHOUT saving so that your " +
|
|
"safe doesn't get corrupted");
|
|
}
|
|
|
|
|
|
export {
|
|
exceptionAlert
|
|
} |