From 5ba0c2d12acf7ad67d0ed3aec237529390bd4daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Farkas=20J=C3=B3zsef?= Date: Sat, 24 Sep 2016 23:39:08 +0200 Subject: [PATCH] Fix error message in UhkBuffer --- src/config-serializer/UhkBuffer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config-serializer/UhkBuffer.ts b/src/config-serializer/UhkBuffer.ts index d7572bcf..50f6e511 100644 --- a/src/config-serializer/UhkBuffer.ts +++ b/src/config-serializer/UhkBuffer.ts @@ -133,8 +133,8 @@ export class UhkBuffer { let stringByteLength = Buffer.byteLength(str, UhkBuffer.stringEncoding); if (stringByteLength > UhkBuffer.maxCompactLength) { - throw 'Cannot serialize string: ${stringByteLength} bytes is larger ' + - 'than the maximum allowed length of ${UhkBuffer.maxStringByteLength} bytes'; + throw `Cannot serialize string: ${stringByteLength} bytes is larger + than the maximum allowed length of ${UhkBuffer.maxCompactLength} bytes`; } this.writeCompactLength(stringByteLength);