GSI - Employe Self Service Mobile
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
641 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorOut = void 0;
const logError_1 = require("./logError");
const error_1 = require("./error");
function errorOut(error) {
let fbError;
if (error instanceof error_1.FirebaseError) {
fbError = error;
}
else {
fbError = new error_1.FirebaseError("An unexpected error has occurred.", {
original: error,
exit: 2,
});
}
(0, logError_1.logError)(fbError);
process.exitCode = fbError.exit || 2;
setTimeout(() => {
process.exit();
}, 250);
}
exports.errorOut = errorOut;