forked from MapComplete/MapComplete
Dump result to console in case of an error
This commit is contained in:
parent
ac7c3d837d
commit
1815227fe6
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ export default class ScriptUtils {
|
||||||
try {
|
try {
|
||||||
resolve(JSON.parse(result))
|
resolve(JSON.parse(result))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.error("Could not parse the following as JSON:", result)
|
||||||
reject(e)
|
reject(e)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue