better error message or callback

This commit is contained in:
Jason Kulatunga 2024-01-29 14:24:08 -08:00
parent 78a1935d13
commit b1c9fec7e8
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ export class MedicalSourcesConnectedComponent implements OnInit {
//TOOD: print this message in the UI
let errMsg = "an error occurred while authenticating to this source. Please try again later"
console.error(errMsg, callbackErrorDescription)
throw new Error(errMsg)
throw new Error(`callback error: ${callbackError}, description: ${callbackErrorDescription}`)
}
console.log("callback code:", callbackCode)