mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 13:45:30 +00:00
fix(source-maps): preserve launch admission failures during cancellation (#12565)
* fix(source-maps): preserve launch admission failures during cancellation * fix(source-maps): distinguish launch rejection from observed cancellation
This commit is contained in:
2 files changed
+50
-1
No files matched your search
@@ -412,7 +412,11 @@ class OwnedCodec implements SourceMapCleanupOwner {
|
||||
const outcome = this.#outcome;
|
||||
if (outcome?.kind === "physical")
|
||||
return this.#physicalFailure(outcome.observation);
|
||||
if (outcome?.kind === "cancelled")
|
||||
// The launcher reports cancellation separately from a physical admission failure.
|
||||
if (
|
||||
outcome?.kind === "cancelled" &&
|
||||
!(cause instanceof ProcessAdmissionError)
|
||||
)
|
||||
return cancelledBy(OPERATION, carriedReason(outcome.callerReason));
|
||||
if (outcome?.kind === "timeout")
|
||||
return new AnalysisTimeoutError(
|
||||
|
||||
Reference in new issue
Block a user