@@ -41,11 +41,17 @@ if (verified.success) {
4141
4242if ( ! kind ) {
4343 const err = verified . errors ?. [ 0 ] ;
44- console . error ( `FAILED: ${ err ?. message ?? "token rejected" } (code ${ err ?. code ?? "?" } )` ) ;
44+ console . error (
45+ `FAILED: ${ err ?. message ?? "token rejected" } (code ${ err ?. code ?? "?" } )` ,
46+ ) ;
4547 console . error ( " Tried both the user and account token endpoints." ) ;
4648 if ( ! account ) {
47- console . error ( " CLOUDFLARE_ACCOUNT_ID was not set, so the account endpoint was skipped --" ) ;
48- console . error ( " an account-owned (cfat_) token can only be verified with it." ) ;
49+ console . error (
50+ " CLOUDFLARE_ACCOUNT_ID was not set, so the account endpoint was skipped --" ,
51+ ) ;
52+ console . error (
53+ " an account-owned (cfat_) token can only be verified with it." ,
54+ ) ;
4955 }
5056 process . exit ( 1 ) ;
5157}
@@ -57,9 +63,15 @@ if (account) {
5763 const workers = await get ( `/accounts/${ account } /workers/services` ) ;
5864 if ( ! workers . success ) {
5965 const err = workers . errors ?. [ 0 ] ;
60- console . error ( `FAILED: cannot reach Workers on this account -- ${ err ?. message } (code ${ err ?. code } )` ) ;
61- console . error ( " The token is valid but lacks Workers Scripts: Edit, or belongs to another account." ) ;
66+ console . error (
67+ `FAILED: cannot reach Workers on this account -- ${ err ?. message } (code ${ err ?. code } )` ,
68+ ) ;
69+ console . error (
70+ " The token is valid but lacks Workers Scripts: Edit, or belongs to another account." ,
71+ ) ;
6272 process . exit ( 1 ) ;
6373 }
64- console . log ( `OK: can reach Workers on ${ account . slice ( 0 , 8 ) } ... (${ workers . result ?. length ?? 0 } services)` ) ;
74+ console . log (
75+ `OK: can reach Workers on ${ account . slice ( 0 , 8 ) } ... (${ workers . result ?. length ?? 0 } services)` ,
76+ ) ;
6577}
0 commit comments