From 8b0aa58c49d65f3d0fcefd1f0f71502b0fd8c229 Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Mon, 25 Mar 2019 22:54:34 -0700 Subject: [PATCH] Improve control character error message --- assembly/encoder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assembly/encoder.ts b/assembly/encoder.ts index 5df46c6..bccebba 100644 --- a/assembly/encoder.ts +++ b/assembly/encoder.ts @@ -103,7 +103,7 @@ export class JSONEncoder { this.write("\\t"); } else { // TODO: Implement encoding for other contol characters - assert(false, "Unsupported control chracter"); + assert(false, "Unsupported control character code: " + char.toString()); } } }