refactor: dedupe infra cli wizard error formatting

This commit is contained in:
Peter Steinberger
2026-04-07 01:32:13 +01:00
parent 11eed107f4
commit 7f6277b6e5
14 changed files with 33 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
import { formatErrorMessage } from "../../infra/errors.js";
import { withProgress } from "../progress.js";
function resolveProbeFailureMessage(result: {
@@ -67,7 +68,7 @@ export async function probeGatewayStatus(opts: {
} catch (err) {
return {
ok: false,
error: err instanceof Error ? err.message : String(err),
error: formatErrorMessage(err),
} as const;
}
}