mirror of
https://github.com/standardnotes/server
synced 2026-01-16 20:04:32 -05:00
fix(websockets): change error message on unknown errors
This commit is contained in:
@@ -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)}`,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user