Update invalid-tcp-message.exception.ts

typo error message
This commit is contained in:
ghy
2025-09-05 11:28:59 +08:00
committed by GitHub
parent c023827a24
commit df7b5263b7

View File

@@ -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);
}
}