"use strict";
/** @format */
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServerlessError = void 0;
var core_1 = require("@serverless-devs/core");
var ServerlessError = /** @class */ (function () {
    function ServerlessError(phase, message, params) {
        this.logger.error(phase + ': ' + message, params);
        process.exit(-1);
    }
    var _a;
    __decorate([
        core_1.HLogger('S-CLI-ERROR'),
        __metadata("design:type", typeof (_a = typeof core_1.ILogger !== "undefined" && core_1.ILogger) === "function" ? _a : Object)
    ], ServerlessError.prototype, "logger", void 0);
    return ServerlessError;
}());
exports.ServerlessError = ServerlessError;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVybGVzcy1lcnJvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lcnJvci9zZXJ2ZXJsZXNzLWVycm9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxjQUFjOzs7Ozs7Ozs7Ozs7QUFFZCw4Q0FBeUQ7QUFFekQ7SUFFRSx5QkFBWSxLQUFhLEVBQUUsT0FBZSxFQUFFLE1BQVk7UUFDdEQsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsS0FBSyxHQUFHLElBQUksR0FBRyxPQUFPLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFDbEQsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ25CLENBQUM7O0lBSnVCO1FBQXZCLGNBQU8sQ0FBQyxhQUFhLENBQUM7c0RBQVMsY0FBTyxvQkFBUCxjQUFPO21EQUFDO0lBSzFDLHNCQUFDO0NBQUEsQUFORCxJQU1DO0FBTlksMENBQWUifQ==