From 96d47a040c1f1b13a655b46bac3bb0467f9db07f Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 9 Aug 2021 14:30:51 -0400 Subject: [PATCH] logging --- src/class/Context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }