mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-20 05:31:30 +00:00
refactor: dedupe infra cli wizard error formatting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user