Handle Parse.Query.subscribe() errors with Promises
alphaStarting from version 4.0.0-beta.1, calling Parse.Query.subscribe() returns a rejected promise if an error is thrown in Cloud Code Triggers such as beforeConnect or beforeSubscribe.
In previous versions, this method returned a resolved promise even if the subscription failed, requiring developers to use an error.on listener to catch errors. You should now use standard Promise .catch() or try/catch blocks to handle subscription errors.