From 024121112776c35523286bc0780274cd7a9ed70e Mon Sep 17 00:00:00 2001 From: ai-bot Date: Tue, 13 Oct 2026 16:28:01 +0000 Subject: [PATCH] startos: format the action the way prettier wants it --- startos/actions/setAdminPassword.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/startos/actions/setAdminPassword.ts b/startos/actions/setAdminPassword.ts index e6a780f..f19b7b1 100644 --- a/startos/actions/setAdminPassword.ts +++ b/startos/actions/setAdminPassword.ts @@ -19,10 +19,7 @@ const inputSpec = InputSpec.of({ required: false, default: null, patterns: [ - { - regex: '.{1,60}', - description: i18n('Use at most 60 characters.'), - }, + { regex: '.{1,60}', description: i18n('Use at most 60 characters.') }, ], }), }) @@ -78,7 +75,8 @@ export const setAdminPassword = sdk.Action.withInput( const result = await sub.exec(command) if (result.exitCode !== 0) { const stderr = String(result.stderr).trim() - throw new Error(stderr || i18n('The admin password could not be set.')) + const reason = stderr || i18n('The admin password could not be set.') + throw new Error(reason) } report = String(result.stdout).trim() },