diff --git a/src/features/lightspeed/lightSpeedOAuthProvider.ts b/src/features/lightspeed/lightSpeedOAuthProvider.ts index ba4601bd3..02dedcb5a 100644 --- a/src/features/lightspeed/lightSpeedOAuthProvider.ts +++ b/src/features/lightspeed/lightSpeedOAuthProvider.ts @@ -400,6 +400,11 @@ export class LightSpeedAuthenticationProvider "[ansible-lightspeed-oauth] error message: ", error.message, ); + /* istanbul ignore next */ + console.error( + "[ansible-lightspeed-oauth] error response data: ", + error.response?.data, + ); throw new Error("An unexpected error occurred"); } else { console.error("[ansible-lightspeed-oauth] unexpected error: ", error); diff --git a/src/features/lightspeed/lightspeedUser.ts b/src/features/lightspeed/lightspeedUser.ts index 028c48af4..8e2b962c2 100644 --- a/src/features/lightspeed/lightspeedUser.ts +++ b/src/features/lightspeed/lightspeedUser.ts @@ -173,6 +173,11 @@ export class LightspeedUser { this._logger.error( `[ansible-lightspeed-user] error message: ${error.message}`, ); + /* istanbul ignore next */ + console.error( + "[ansible-lightspeed-user] error response data: ", + error.response?.data, + ); throw new Error(error.message); } else { this._logger.error(