From af0134f63ced2393eac70ffc7169a6669839cec0 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sun, 25 Oct 2026 12:43:12 +0000 Subject: [PATCH] Normalise the caught value before it is interpolated (make x86) --- startos/init/requireAdmin.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/startos/init/requireAdmin.ts b/startos/init/requireAdmin.ts index 1c8a528..8f1e4e2 100644 --- a/startos/init/requireAdmin.ts +++ b/startos/init/requireAdmin.ts @@ -72,7 +72,11 @@ export const requireAdmin = sdk.setupOnInit(async (effects) => { }, ) } catch (error) { - console.warn(`The admin probe did not run, so it was ignored: ${error}`) + // A caught value is `unknown`, so it is normalised before it is used, the + // same way the two actions normalise stdout and stderr. + console.warn( + `The admin probe did not run, so it was ignored: ${String(error)}`, + ) } if (configured) {