mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-09 19:44:56 +02:00
11 lines
354 B
JavaScript
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
|