mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Update invalid-tcp-message.exception.ts
typo error message
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { RuntimeException } from '@nestjs/core/errors/exceptions/runtime.exception';
|
||||
|
||||
export class InvalidTcpMessageException extends RuntimeException {
|
||||
constructor() {
|
||||
super(`The invalid data or message from tcp recv message.`);
|
||||
constructor(err:string) {
|
||||
const _errMsg = err.includes('Corrupted length value') ? 'Corrupted length value of the received data supplied in a packet.' : `The invalid received message from tcp server.`
|
||||
super(_errMsg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user