@sasjs/cli
Version:
Command line interface for SASjs
13 lines (12 loc) • 640 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.printError = void 0;
var printError = function (job, flowName, err) {
var _a;
(_a = process.logger) === null || _a === void 0 ? void 0 : _a.error("An error has occurred when executing '".concat(flowName, "' flow's job located at: '").concat(job.location, "'. ").concat(typeof err === 'object'
? (err === null || err === void 0 ? void 0 : err.name) === 'NotFoundError'
? 'Job was not found.'
: (err === null || err === void 0 ? void 0 : err.message) || ''
: '\n' + err));
};
exports.printError = printError;