Skip to content

Commit 5e9ddbd

Browse files
felixsanzclaude
andauthored
fix: correct stale documentation URLs in error mapper (#69)
Two doc paths in the error mapper (`internal/api/transport/errors.go`) 404 after the docs restructure: - SDK/internal errors: `getting-started/errors` → `platform/errors` - `getResponse`: `platform/get-response` → `platform/task-polling` No tests assert these URLs, so this is a two-line constant change. Mirrors the same fix already shipped in the TypeScript and Python SDKs. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 86db2c1 commit 5e9ddbd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/api/transport/errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ func DeriveCode(raw string) ErrorCode {
182182

183183
const (
184184
docsBase = "https://runware.ai/docs"
185-
sdkErrorDocPath = "getting-started/errors"
185+
sdkErrorDocPath = "platform/errors"
186186
)
187187

188188
var utilityDocPaths = map[string]string{
189189
"modelSearch": "platform/model-search",
190190
"modelUpload": "platform/model-upload",
191191
"imageUpload": "platform/image-upload",
192-
"getResponse": "platform/get-response",
192+
"getResponse": "platform/task-polling",
193193
"accountManagement": "platform/account-management",
194194
}
195195

0 commit comments

Comments
 (0)