Skip to content

Commit

Permalink
fixup! review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Apr 29, 2024
1 parent 636415d commit da898a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/async-flow/src/async-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,13 @@ export const prepareAsyncFlowTools = (outerZone, outerOptions = {}) => {
const eph = tmp.for(flow);

if (failures.has(flow)) {
failures.set(flow, fatalProblem);
const prevErr = failures.get(flow);
annotateError(
prevErr,
X`doubly failed somehow with ${fatalProblem}`,
);
// prevErr likely to be the more relevant diagnostic to report
fatalProblem = prevErr;
} else {
failures.init(flow, fatalProblem);
}
Expand Down

0 comments on commit da898a2

Please sign in to comment.