File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,8 @@ export const awaitApproval = async () => {
88 } )
99
1010 if ( ! response )
11- throw new HTTPError ( "Request rejected" , Response . json ( { status : 429 } ) )
11+ throw new HTTPError (
12+ "Request rejected" ,
13+ Response . json ( { message : "Request rejected" } , { status : 403 } ) ,
14+ )
1215}
Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ export async function checkRateLimit(state: State) {
2828 consola . warn (
2929 `Rate limit exceeded. Need to wait ${ waitTimeSeconds } more seconds.` ,
3030 )
31- throw new HTTPError ( "Rate limit exceeded" , Response . json ( { status : 429 } ) )
31+ throw new HTTPError (
32+ "Rate limit exceeded" ,
33+ Response . json ( { message : "Rate limit exceeded" } , { status : 429 } ) ,
34+ )
3235 }
3336
3437 const waitTimeMs = waitTimeSeconds * 1000
You can’t perform that action at this time.
0 commit comments