Public: anyone can read this; the crew can change it.
A test pins how an origin's refusal reads: `toSourceError` folds forbidden into unauthorized and anything unknown into unreachable #6657
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Browsing a repository on another forge says why it could not;
toSourceErrorin src/view/origin.ts is that sentence's source and is untested.Done:
ProviderFailureerror: not_found → not_found, rate_limited → rate_limited, unauthorized and forbidden → unauthorized, every other value → unreachabletscFiles: test/view-origin-errors.test.ts
Risks: none; pure.
Before pushing:
bun x tsc --noEmitandbun test test/view-origin-errors.test.ts.