Files
2025-07-19 19:59:04 +08:00

10 lines
316 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getErrorCausalChain = getErrorCausalChain;
function getErrorCausalChain(error) {
if (error.cause) {
return [error, ...getErrorCausalChain(error.cause)];
}
return [error];
}
//# sourceMappingURL=errorUtils.js.map