Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('InvalidRequestError', () => {
},
])
expect(error.message).toBe(
'quota exceeded(s): compute_snapshots_type_b_ssd_available has reached its quota (0/0)',
'quota(s) exceeded: compute_snapshots_type_b_ssd_available has reached its quota (0/0)',
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('QuotasExceededError', () => {

it(`parses a valid input`, () => {
expect(parseScalewayError(403, body).toString()).toBe(
`QuotasExceededError: quota exceeded(s): instance_volume has reached its quota (10/10) for project 'b7a1cf21-1e90-464c-a9f6-375c4d1f4b64'; instance_volumes_l_ssd_total_gb has reached its quota (80/100) for organization '72dd6741-d748-42e7-ba65-acd07447d3e9'; instance_volumes_l_ssd_total_gb has reached its quota (70/100)`,
`QuotasExceededError: quota(s) exceeded: instance_volume has reached its quota (10/10) for project 'b7a1cf21-1e90-464c-a9f6-375c4d1f4b64'; instance_volumes_l_ssd_total_gb has reached its quota (80/100) for organization '72dd6741-d748-42e7-ba65-acd07447d3e9'; instance_volumes_l_ssd_total_gb has reached its quota (70/100)`,
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type QuotasExceededErrorDetails = {
* @internal
*/
const buildMessage = (list: QuotasExceededErrorDetails[]): string =>
`quota exceeded(s): ${list
`quota(s) exceeded: ${list
.map(details => {
const message = `${details.resource} has reached its quota (${details.current}/${details.quota})`

Expand Down