Skip to content

Commit 0b7e942

Browse files
authored
style(secrets): format missing plan error branch
1 parent 97db300 commit 0b7e942

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/cli/secrets-cli.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,7 @@ export function registerSecretsCli(program: Command): void {
348348
// The missing-plan wrapper already carries a user-facing message. Keep its
349349
// ENOENT cause available to diagnostics without rendering the raw filesystem error.
350350
const message =
351-
err instanceof SecretsPlanFileNotFoundError
352-
? err.message
353-
: formatErrorMessage(err);
351+
err instanceof SecretsPlanFileNotFoundError ? err.message : formatErrorMessage(err);
354352
defaultRuntime.error(
355353
danger(
356354
`Secrets apply failed: ${message}. Re-run ${formatCliCommand("openclaw secrets apply --from <path> --dry-run")} to inspect the plan without writing.`,

0 commit comments

Comments
 (0)