diff --git a/src/class/Context.ts b/src/class/Context.ts index 6a12ff4..45a41b5 100644 --- a/src/class/Context.ts +++ b/src/class/Context.ts @@ -30,7 +30,7 @@ export default class Context { public send(v: string) { console.log('writing or whateva'); - this.socket.write(`${v.toString()}\n`, (err) => console.error(err)); + this.socket.write(`${v.toString()}\n`, (err) => this.client.signale.error(`Error occurred while writing: ${err}`)); this.socket.destroy(); } }