Skip to content

fix(routes): show API error details in Try a route - #1213

Merged
letstokenize merged 2 commits into
mainfrom
fix/routes-tester-error-details
Dec 1, 2026
Merged

letstokenize merged 2 commits into
mainfrom
fix/routes-tester-error-details

Conversation

@letstokenize

@letstokenize letstokenize commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What

When a Routes API error carries details, Try a route now shows the API's message and details in place of the two guides that only say to retry (quote_not_available, deposit_address_not_available). Every other guide, and every request made with the docs demo key, keeps its guide.

Why

Before, a quote_not_available error always showed "No quote is available for this route right now. Try another amount, or try again later." That was true even when the API said exactly what was wrong, such as "The sender is not authorized for this route." When a transfer is refused because the wallet isn't approved for a pair, the reader now sees that reason on the step that failed.

Guides with a next step (such as "Do not send again") and docs-key and subsidy guides are unchanged. The demo key's refusals aren't the reader's own, so keyless requests keep the generic guide.

Checks

  • vitest run src/lib/routes-execution.test.ts (17 passed, with cases for details replacing a retry guide, a next-step guide kept, and the demo key kept)
  • biome check on the changed files

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings marked 🟡 are optional suggestions and need no follow-up push.

Comment thread src/lib/routes-execution.ts Resolved
Comment thread src/lib/routes-execution.ts Resolved

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review found no issues

No high-confidence issues detected in this change.

@letstokenize
letstokenize merged commit 5f636a3 into main Dec 1, 2026
14 checks passed
@letstokenize
letstokenize deleted the fix/routes-tester-error-details branch December 1, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant