mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 19:53:50 +00:00
feat(errors): name a deadline's parameter or environment control in details.limit (#11172)
This commit is contained in:
1 parent
2d4a97b405
commit
863d82e370
16 files changed
+159
-50
No files matched your search
@@ -13,6 +13,7 @@ import {
|
||||
AnalysisCapabilityUnavailableError,
|
||||
AnalysisResourceConstraintError,
|
||||
AnalysisTimeoutError,
|
||||
type AnalysisTimeoutRecovery,
|
||||
cancelledBy,
|
||||
carriedReason,
|
||||
} from "../domain/analysisErrorCore.js";
|
||||
@@ -32,10 +33,7 @@ import {
|
||||
/** Operation-owned text for a command deadline or unavailable requirement. */
|
||||
export interface NativeCommandFailurePresentation {
|
||||
readonly unavailableMessage?: string;
|
||||
readonly timeoutRecovery?: {
|
||||
readonly userMessage: string;
|
||||
readonly remediationAction: string;
|
||||
};
|
||||
readonly timeoutRecovery?: AnalysisTimeoutRecovery;
|
||||
}
|
||||
|
||||
/** Translate the command owner's facts once, preserving capture and cleanup authority. */
|
||||
@@ -116,7 +114,7 @@ export const translateNativeCommandFailure = (
|
||||
...(presentation.timeoutRecovery ??
|
||||
nativeDeadlineRecovery({
|
||||
timeoutMs,
|
||||
setting: "native_command_timeout_ms",
|
||||
parameter: "native_command_timeout_ms",
|
||||
cliFlag: "--native-command-timeout-ms",
|
||||
defaultMs: DEFAULT_NATIVE_COMMAND_TIMEOUT_MS,
|
||||
phase: "macOS native command deadline",
|
||||
@@ -135,6 +133,7 @@ export const translateNativeCommandFailure = (
|
||||
...options,
|
||||
userMessage: darwin.compileTimeout.userMessage,
|
||||
remediationAction: darwin.compileTimeout.remediationAction,
|
||||
limit: darwin.compileTimeout.limit,
|
||||
},
|
||||
)
|
||||
: new ProviderAdapterError(IDENTITY.id, operation, options);
|
||||
@@ -201,7 +200,7 @@ export const translateNativeCommandFailure = (
|
||||
...(presentation.timeoutRecovery ??
|
||||
nativeDeadlineRecovery({
|
||||
timeoutMs,
|
||||
setting: "native_command_timeout_ms",
|
||||
parameter: "native_command_timeout_ms",
|
||||
cliFlag: "--native-command-timeout-ms",
|
||||
defaultMs: DEFAULT_NATIVE_COMMAND_TIMEOUT_MS,
|
||||
phase: "macOS native command deadline",
|
||||
|
||||
Reference in new issue
Block a user