alwaysai
Version:
The alwaysAI command-line interface (CLI)
19 lines • 569 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringifyError = void 0;
const serialize_error_1 = require("serialize-error");
function stringifyError(e) {
let errorStr = '';
if (e.stack !== undefined) {
errorStr = e.stack;
}
else if (e.message !== undefined) {
errorStr = e.message;
}
else {
errorStr = JSON.stringify((0, serialize_error_1.serializeError)(e), null, 2);
}
return errorStr;
}
exports.stringifyError = stringifyError;
//# sourceMappingURL=stringify-error.js.map