Skip to content

Commit

Permalink
Merge pull request #1149 from ORCID/landing-page-error-logs
Browse files Browse the repository at this point in the history
add error logs to landing page
  • Loading branch information
bobcaprice authored Apr 4, 2024
2 parents 4ce727a + 35816e7 commit d6f90e7
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions ui/src/app/landing-page/landing-page.component.ts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d6f90e7

Please sign in to comment.