@@ -327,21 +327,19 @@ export const transferCommand = new Command('transfer')
327327 if ( error . isRateLimited ) {
328328 console . error ( chalk . red ( '✖ Rate limited by the API' ) )
329329 if ( error . retryAfterSeconds !== null ) {
330- console . error (
331- chalk . yellow ( ` Retry after: ${ error . retryAfterSeconds } s` )
332- )
330+ console . error ( chalk . yellow ( ` Retry after: ${ error . retryAfterSeconds } s` ) )
333331 }
334- console . error ( chalk . gray ( ' You have made too many requests. Please wait before trying again.' ) )
332+ console . error (
333+ chalk . gray ( ' You have made too many requests. Please wait before trying again.' )
334+ )
335335 } else {
336336 console . error ( chalk . red ( '✖ Permission denied (403)' ) )
337337 console . error ( chalk . gray ( ' This can happen when:' ) )
338338 console . error ( chalk . gray ( ' - Your session or ETHAuth proof has expired' ) )
339339 console . error ( chalk . gray ( ' - You have exceeded the signing rate limit' ) )
340340 console . error ( chalk . gray ( ' - The access key is invalid or revoked' ) )
341341 if ( error . retryAfterSeconds !== null ) {
342- console . error (
343- chalk . yellow ( ` Retry after: ${ error . retryAfterSeconds } s` )
344- )
342+ console . error ( chalk . yellow ( ` Retry after: ${ error . retryAfterSeconds } s` ) )
345343 }
346344 }
347345 if ( error . errorBody ) {
@@ -375,7 +373,11 @@ export const transferCommand = new Command('transfer')
375373 }
376374
377375 // Check for 403/rate-limit in generic error messages (e.g. from Sequence SDK)
378- if ( errorMessage . includes ( '403' ) || errorMessage . toLowerCase ( ) . includes ( 'permissiondenied' ) || errorMessage . toLowerCase ( ) . includes ( 'rate limit' ) ) {
376+ if (
377+ errorMessage . includes ( '403' ) ||
378+ errorMessage . toLowerCase ( ) . includes ( 'permissiondenied' ) ||
379+ errorMessage . toLowerCase ( ) . includes ( 'rate limit' )
380+ ) {
379381 if ( json ) {
380382 console . log (
381383 JSON . stringify ( {
@@ -398,7 +400,13 @@ export const transferCommand = new Command('transfer')
398400 }
399401
400402 if ( json ) {
401- console . log ( JSON . stringify ( { error : errorMessage , code : EXIT_CODES . GENERAL_ERROR , timing : { failedStep : currentStep , failedStepMs, totalElapsedMs } } ) )
403+ console . log (
404+ JSON . stringify ( {
405+ error : errorMessage ,
406+ code : EXIT_CODES . GENERAL_ERROR ,
407+ timing : { failedStep : currentStep , failedStepMs, totalElapsedMs } ,
408+ } )
409+ )
402410 } else {
403411 console . error ( chalk . red ( '✖ Transfer failed:' ) , errorMessage )
404412 }
0 commit comments