From e046f1728ff297b9853db9317934755131ec1ead Mon Sep 17 00:00:00 2001 From: Wes Date: Wed, 20 Sep 2023 15:37:41 -0700 Subject: [PATCH] fix: display full error message for connect errors (#413) @alecthomas this should provide more detailed connect errors than just the error `code`. Although, I doubt we would have got more info with this specific `code 2` error since it's this ```ts /** * Unknown error */ Unknown = 2, ``` --- console/client/src/services/console.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/console/client/src/services/console.service.ts b/console/client/src/services/console.service.ts index 8a581b6a8a..3a9b67638c 100644 --- a/console/client/src/services/console.service.ts +++ b/console/client/src/services/console.service.ts @@ -144,8 +144,10 @@ export const streamEvents = async ({ abortControllerSignal, filters, onEventRece } catch (error) { if (error instanceof ConnectError) { if (error.code !== Code.Canceled) { - console.error('Connect error:', error.code) + console.error('Console service - streamEvents - Connect error:', error) } + } else { + console.error('Console service - streamEvents:', error) } } }