From 8cabe7ded8da066e427aa0b677361b55ab2650a3 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 6 Jan 2021 17:07:35 +0530 Subject: [PATCH] clean up error serialization code a bit --- www/common/sframe-common-outer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 15c192d16..a4b2606d4 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -160,14 +160,12 @@ define([ try { iframe.postMessage(data, '*'); } catch (err) { - console.error(err); - console.error(data); + console.error(err, data); if (data && data.error && data.error instanceof Error) { data.error = Util.serializeError(data.error); try { iframe.postMessage(data, '*'); } catch (err2) { - // XXX console.error("impossible serialization"); throw err2; }