diff --git a/package.json b/package.json index ed0ae12b..f8ca64ad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-auth", "description": "plugin for sfdx auth commands", - "version": "2.8.22", + "version": "2.8.23-dev.0", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "main": "lib/index.js", diff --git a/src/commands/org/login/jwt.ts b/src/commands/org/login/jwt.ts index c33e69e2..799634c8 100644 --- a/src/commands/org/login/jwt.ts +++ b/src/commands/org/login/jwt.ts @@ -101,7 +101,10 @@ export default class LoginJwt extends AuthBaseCommand { if (!(err instanceof Error)) { throw err; } - throw messages.createError('JwtGrantError', [err.message]); + // pretty-print err from sfdx-core to get stacktrace swalloed by sf + // eslint-disable-next-line + console.error(err); + throw messages.createError('JwtGrantError', [err.message], undefined, undefined, err); } const successMsg = commonMessages.getMessage('authorizeCommandSuccess', [result.username, result.orgId]);