summary refs log tree commit diff
path: root/gateway/src/events/Connection.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-02 15:12:47 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-02 15:12:47 +0200
commit7bd0a2004c9d7f1c59b510a5462b82c4b0a0ce7a (patch)
tree4e77c193c08b2acb234981a6244836e1c5398bcf /gateway/src/events/Connection.ts
parentMerge pull request #410 from TheArcaneBrony/master (diff)
downloadserver-7bd0a2004c9d7f1c59b510a5462b82c4b0a0ce7a.tar.xz
:art: restructure gateway
Diffstat (limited to 'gateway/src/events/Connection.ts')
-rw-r--r--gateway/src/events/Connection.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/gateway/src/events/Connection.ts b/gateway/src/events/Connection.ts
index 85f92b77..f84f9d9b 100644
--- a/gateway/src/events/Connection.ts
+++ b/gateway/src/events/Connection.ts
@@ -35,8 +35,11 @@ export async function Connection(
 		// @ts-ignore
 		socket.encoding = searchParams.get("encoding") || "json";
 		if (!["json", "etf"].includes(socket.encoding)) {
-			if (socket.encoding === "etf" && erlpack)
-				throw new Error("Erlpack is not installed: 'npm i -D erlpack'");
+			if (socket.encoding === "etf" && erlpack) {
+				throw new Error(
+					"Erlpack is not installed: 'npm i @yukikaze-bot/erlpack'"
+				);
+			}
 			return socket.close(CLOSECODES.Decode_error);
 		}