mirror of
https://github.com/morluto/rea.git
synced 2026-12-03 21:46:01 +00:00
refactor: centralize owned finalization and configuration failures (#14071)
* refactor(config): propagate typed configuration failures * refactor(lifecycle): centralize completion and cancellation * fix(config): preserve Hermes YAML edit refusal guidance
This commit is contained in:
1 parent
a324181ccc
commit
4bbaf17512
81 files changed
+2667
-2102
No files matched your search
@@ -20,6 +20,7 @@ import {
|
||||
} from "../domain/analysisErrorCore.js";
|
||||
import { AnalysisError } from "../domain/analysisErrorBase.js";
|
||||
import { analysisErrorWithCancellation } from "../domain/analysisErrorCancellation.js";
|
||||
import { WindowsChangeTimeConfigurationError } from "../config/windowsChangeTimeSettle.js";
|
||||
import { ConfigurationError } from "../domain/configurationErrors.js";
|
||||
import { createEvidence, type Evidence } from "../domain/evidence.js";
|
||||
import { analysisErrorWithCleanupFailure } from "../domain/analysisErrorCleanup.js";
|
||||
@@ -335,7 +336,7 @@ const captureReadFailure = (
|
||||
"Capture read and file-handle close both failed",
|
||||
{ cause },
|
||||
);
|
||||
if (cause instanceof ConfigurationError) {
|
||||
if (cause instanceof WindowsChangeTimeConfigurationError) {
|
||||
if (closeFailure === undefined) return cause;
|
||||
return new ConfigurationError(cause.message, {
|
||||
cause: causeWithClose,
|
||||
|
||||
Reference in new issue
Block a user