Files
documentation/node_modules/@docusaurus/utils-common/lib/errorUtils.js
2024-03-22 03:47:51 +05:30

11 lines
354 B
JavaScript

"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