From ce3bff03451b97a2025933247951a6352400469b Mon Sep 17 00:00:00 2001 From: Nic Dutil Date: Sat, 9 Apr 2022 16:11:26 -0400 Subject: [PATCH] use template literal when logging error --- docs/injectables/OAuthService.html | 2 +- projects/lib/src/oauth-service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/injectables/OAuthService.html b/docs/injectables/OAuthService.html index a8d432e0..a1e98415 100644 --- a/docs/injectables/OAuthService.html +++ b/docs/injectables/OAuthService.html @@ -9952,7 +9952,7 @@

resolve(tokenResponse); }, (err) => { - this.logger.error('Error performing ${grantType} flow', err); + this.logger.error(`Error performing ${grantType} flow`, err); this.eventsSubject.next(new OAuthErrorEvent('token_error', err)); reject(err); } diff --git a/projects/lib/src/oauth-service.ts b/projects/lib/src/oauth-service.ts index a5fbfd14..6be8e1be 100644 --- a/projects/lib/src/oauth-service.ts +++ b/projects/lib/src/oauth-service.ts @@ -910,7 +910,7 @@ export class OAuthService extends AuthConfig implements OnDestroy { resolve(tokenResponse); }, (err) => { - this.logger.error('Error performing ${grantType} flow', err); + this.logger.error(`Error performing ${grantType} flow`, err); this.eventsSubject.next(new OAuthErrorEvent('token_error', err)); reject(err); }