This commit is contained in:
Travis Ralston 2018-10-18 17:06:47 -06:00
parent 0030ba7015
commit 71a97170d7

View file

@ -384,7 +384,7 @@ module.exports = React.createClass({
try {
resolve(JSON.parse(body));
}catch (e) {
} catch (e) {
console.error(e);
if (e.name === "SyntaxError") {
reject({wkAction: "FAIL_PROMPT", wkError: "Invalid JSON"});