From b1c9fec7e8c7e844fc6e2872085f8b03b591dd1b Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Mon, 29 Jan 2024 14:24:08 -0800 Subject: [PATCH] better error message or callback --- .../medical-sources-connected.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/medical-sources-connected/medical-sources-connected.component.ts b/frontend/src/app/components/medical-sources-connected/medical-sources-connected.component.ts index 4508b58db..9f5e2ec5b 100644 --- a/frontend/src/app/components/medical-sources-connected/medical-sources-connected.component.ts +++ b/frontend/src/app/components/medical-sources-connected/medical-sources-connected.component.ts @@ -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)