mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 08:01:17 +00:00
testDoToken() used asyncTryCatchIf(isNetworkError, ...) which only caught network errors. A 401 HTTP response threw a regular Error that escaped the guard, propagating to main().catch() and printing "Fatal: DigitalOcean API error 401...". Changed to asyncTryCatch() to catch all errors, returning false for invalid tokens so ensureDoToken() naturally falls through to OAuth recovery. Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| shared | ||