fix(websockets): change error message on unknown errors
This commit is contained in:
parent
6bdb524489
commit
79ae07623f
1 changed files with 3 additions and 3 deletions
|
@ -45,9 +45,9 @@ export class SendMessageToClient implements UseCaseInterface<void> {
|
|||
}
|
||||
} catch (error) {
|
||||
return Result.fail(
|
||||
`Could not send message to connection ${connection.props.connectionId} for user ${userUuid.value}. Error: ${
|
||||
(error as Error).message
|
||||
}`,
|
||||
`Could not send message to connection ${connection.props.connectionId} for user ${
|
||||
userUuid.value
|
||||
}. Error: ${JSON.stringify(error)}`,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue