sdin
Version:
JavaScript package builder.
2 lines • 580 B
JavaScript
Object.defineProperty(exports,"__esModule",{value:!0}),exports.UNHANDLED_REJECTION=exports.UNCAUGHT_EXCEPTION=void 0;var o=require("../utils/errors"),t=require("../utils/print");let r=exports.UNCAUGHT_EXCEPTION=100001,n=exports.UNHANDLED_REJECTION=100002;process.on("uncaughtException",r=>{var e=(0,o.getErrorCode)(r)||n;(0,t.printError)("Uncaught exception.",r,e)}),process.on("unhandledRejection",r=>{var e=(0,o.getErrorCode)(r)||n;r instanceof Error?(0,t.printError)("Unhandled rejection.",r,e):(0,t.printError)((0,o.getErrorMessage)(r),e)});
//# sourceMappingURL=entry.js.map