I'm trying to run some code like this:
promise.then(function() {
}).catch(function() {
});
iotjs is throwing an error:
iotjs build/server.js
.catch(function (err) {
^
ERROR: Ln 56, Col 6: Expected 'Identifier' token
It seems to not like the fact that the function name is "catch".