Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/__tests__/gateway-session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ describe('gatewayAuth', () => {
});

it.each([
[429, 'daily run limit'],
[429, 'weekly wizard run limit'],
[400, 'exactly one project'],
[403, 'access to this project'],
])('refuses the run on HTTP %i', async (status, fragment) => {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/gateway-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export class GatewayMintFailed extends WizardError {

/**
* Whether a mint status means "refused this run" rather than "not available".
* 429 the daily run limit, 403 revoked project access, 400 a login covering
* 429 the weekly run limit, 403 revoked project access, 400 a login covering
* more than one project, 401 a credential the mint does not accept, 404 an
* instance without the mint endpoint.
*/
Expand Down Expand Up @@ -342,7 +342,7 @@ function mintRefusalMessage(status: number, detail?: string): string {
if (detail) return detail;
switch (status) {
case 429:
return 'This wizard program has used its daily run limit. Try again tomorrow.';
return 'This account has used its weekly wizard run limit. Try again next week.';
case 403:
return 'Your access to this project has changed. Re-authenticate and try again.';
case 400:
Expand Down
Loading