Linting
This commit is contained in:
parent
0030ba7015
commit
71a97170d7
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
try {
|
try {
|
||||||
resolve(JSON.parse(body));
|
resolve(JSON.parse(body));
|
||||||
}catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
if (e.name === "SyntaxError") {
|
if (e.name === "SyntaxError") {
|
||||||
reject({wkAction: "FAIL_PROMPT", wkError: "Invalid JSON"});
|
reject({wkAction: "FAIL_PROMPT", wkError: "Invalid JSON"});
|
||||||
|
|
Loading…
Reference in a new issue