From 35816e79779a55230a624d0f01608076813b53dd Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Wed, 3 Apr 2024 20:18:15 +0300 Subject: [PATCH] add error logs to landing page --- .../landing-page/landing-page.component.ts | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/ui/src/app/landing-page/landing-page.component.ts b/ui/src/app/landing-page/landing-page.component.ts index e2294c31a..494ef5c5c 100644 --- a/ui/src/app/landing-page/landing-page.component.ts +++ b/ui/src/app/landing-page/landing-page.component.ts @@ -90,7 +90,7 @@ export class LandingPageComponent implements OnInit { if (error === 'access_denied') { this.submitUserDenied(state_param) } else { - this.showErrorElement() + this.showErrorElement(error) } } else { this.windowLocationService.updateWindowLocation(this.oauthUrl) @@ -173,21 +173,21 @@ export class LandingPageComponent implements OnInit { this.showSuccessElement() }, - error: () => { - this.showErrorElement() + error: (err) => { + this.showErrorElement(err) }, }) }, - error: () => { - this.showErrorElement() + error: (err) => { + this.showErrorElement(err) }, }) } else { - this.showErrorElement() + this.showErrorElement(response) } }, - error: () => { - this.showErrorElement() + error: (err) => { + this.showErrorElement(err) }, }) } @@ -197,8 +197,8 @@ export class LandingPageComponent implements OnInit { next: () => { this.showDeniedElement() }, - error: () => { - this.showErrorElement() + error: (err) => { + this.showErrorElement(err) }, }) } @@ -232,7 +232,8 @@ export class LandingPageComponent implements OnInit { this.showConnectionExistsDifferentUser = true } - showErrorElement(): void { + showErrorElement(err: any): void { + console.error(err) this.showDenied = false this.showError = true this.showSuccess = false