Gateway/Bridge: report proper exception class names (#433)

This commit is contained in:
Michał Leszczyński
2024-11-24 18:51:10 +01:00
committed by GitHub
parent 7e592de54c
commit 5c19213f08
3 changed files with 31 additions and 2 deletions

View File

@@ -344,7 +344,9 @@ function wsCreateServer(args: Namespace, getReaderNames: () => string[]) {
"uid": packet.uid,
"data": {
"exception": {
"kind": e.constructor.name,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
"kind": e.errorName ?? e.constructor.name,
"name": e.name,
"message": e.message,
"stack": e.stack