Skip to content

Commit 17ac263

Browse files
committed
refactor(macos): move setup error enum to support file (swiftlint file length)
1 parent d6e0d79 commit 17ac263

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎apps/macos/Sources/OpenClaw/OnboardingAISetup.swift‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,15 +1665,3 @@ extension OnboardingAISetupModel {
16651665
}
16661666
#endif
16671667
}
1668-
1669-
private enum OnboardingAISetupError: LocalizedError {
1670-
case providerCatalogUnavailable
1671-
1672-
var errorDescription: String? {
1673-
switch self {
1674-
case .providerCatalogUnavailable:
1675-
"The Gateway is running an older OpenClaw version that doesn’t provide the " +
1676-
"supported provider list. Update OpenClaw on the gateway, then try again."
1677-
}
1678-
}
1679-
}

‎apps/macos/Sources/OpenClaw/OnboardingAISetupSupport.swift‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,3 +385,15 @@ extension OnboardingAISetupModel {
385385
return max(0, min(capMs, Int(milliseconds)))
386386
}
387387
}
388+
389+
enum OnboardingAISetupError: LocalizedError {
390+
case providerCatalogUnavailable
391+
392+
var errorDescription: String? {
393+
switch self {
394+
case .providerCatalogUnavailable:
395+
"The Gateway is running an older OpenClaw version that doesn’t provide the " +
396+
"supported provider list. Update OpenClaw on the gateway, then try again."
397+
}
398+
}
399+
}

0 commit comments

Comments
 (0)