From 1815227fe678807b8ec1ac4c800ee6d6427b91f0 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 18 Jul 2021 18:51:34 +0200 Subject: [PATCH] Dump result to console in case of an error --- scripts/ScriptUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ScriptUtils.ts b/scripts/ScriptUtils.ts index facf7f934..174b1d3df 100644 --- a/scripts/ScriptUtils.ts +++ b/scripts/ScriptUtils.ts @@ -75,6 +75,7 @@ export default class ScriptUtils { try { resolve(JSON.parse(result)) } catch (e) { + console.error("Could not parse the following as JSON:", result) reject(e) } });