From: Ian Jackson Date: Thu, 3 Sep 2020 19:24:50 +0000 (+0100) Subject: better error handling in js X-Git-Tag: otter-0.2.0~1032 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ea164cfea51bbcb4df8f575deadc40cf1f689d04;p=otter.git better error handling in js --- 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) {