From ea164cfea51bbcb4df8f575deadc40cf1f689d04 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 3 Sep 2020 20:24:50 +0100 Subject: [PATCH] better error handling in js --- templates/script.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/script.ts b/templates/script.ts index d32ef390..2ee10ea1 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -616,9 +616,9 @@ function startup() { } gen = tgen; } catch (exc) { + var s = exc.toString(); string_report_error('exception handling update ' - + k + ': ' + JSON.stringify(m) + ': ' + - + exc.toString()); + + k + ': ' + JSON.stringify(m) + ': ' + s); } } es.addEventListener('commsworking', function(event) { -- 2.30.2