"use strict";
/** @format */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServerlessError = void 0;
var s_core_1 = __importDefault(require("../utils/s-core"));
var Logger = (0, s_core_1.default)().Logger;
var logger = new Logger('S-CLI-ERROR');
var ServerlessError = /** @class */ (function () {
    function ServerlessError(phase, message, params) {
        logger.error(phase + ': ' + message, params);
        process.exit(-1);
    }
    return ServerlessError;
}());
exports.ServerlessError = ServerlessError;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVybGVzcy1lcnJvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lcnJvci9zZXJ2ZXJsZXNzLWVycm9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxjQUFjOzs7Ozs7QUFFZCwyREFBc0M7QUFDOUIsSUFBQSxNQUFNLEdBQUssSUFBQSxnQkFBTyxHQUFFLE9BQWQsQ0FBZTtBQUM3QixJQUFNLE1BQU0sR0FBRyxJQUFJLE1BQU0sQ0FBQyxhQUFhLENBQUMsQ0FBQztBQUV6QztJQUNFLHlCQUFZLEtBQWEsRUFBRSxPQUFlLEVBQUUsTUFBWTtRQUN0RCxNQUFNLENBQUMsS0FBSyxDQUFDLEtBQUssR0FBRyxJQUFJLEdBQUcsT0FBTyxFQUFFLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNuQixDQUFDO0lBQ0gsc0JBQUM7QUFBRCxDQUFDLEFBTEQsSUFLQztBQUxZLDBDQUFlIn0=