Dump result to console in case of an error

This commit is contained in:
pietervdvn 2021-07-18 18:51:34 +02:00
parent ac7c3d837d
commit 1815227fe6

View file

@ -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)
}
});