Skip to content

Commit

Permalink
fix: display full error message for connect errors (#413)
Browse files Browse the repository at this point in the history
@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,
```
  • Loading branch information
wesbillman authored Sep 20, 2023
1 parent 901c5e7 commit e046f17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion console/client/src/services/console.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

0 comments on commit e046f17

Please sign in to comment.