Commit 95d53dd 1 parent 4fab128 commit 95d53dd Copy full SHA for 95d53dd
File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 6
6
" sfdx auth:web:login -r https://test.salesforce.com"
7
7
],
8
8
"deviceWarning" : " auth:web:login doesn't work when authorizing to a headless environment. Use auth:device:login instead." ,
9
- "invalidClientId" : " Invalid client credentials. Verify the OAuth client secret and ID."
9
+ "invalidClientId" : " Invalid client credentials. Verify the OAuth client secret and ID. %s "
10
10
}
Original file line number Diff line number Diff line change @@ -80,12 +80,11 @@ export default class Login extends SfdxCommand {
80
80
this . ux . log ( successMsg ) ;
81
81
return fields ;
82
82
} catch ( err ) {
83
+ this . logger . debug ( err ) ;
83
84
if ( err . name === 'AuthCodeExchangeError' ) {
84
- this . ux . error ( messages . getMessage ( 'invalidClientId' ) ) ;
85
- } else {
86
- this . ux . error ( err . message ) ;
85
+ throw new SfdxError ( messages . getMessage ( 'invalidClientId' , [ err . message ] ) ) ;
87
86
}
88
- return { } ;
87
+ throw err ;
89
88
}
90
89
}
91
90
You can’t perform that action at this time.
0 commit comments