Files
est-frame/node_modules/@docusaurus/utils-common/lib/errorUtils.js
2025-10-22 05:38:27 +00:00

11 lines
354 B
JavaScript
Executable File

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