Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Jeremy
2016-04-01 11:33:11 -04:00
15 changed files with 582 additions and 162 deletions

View File

@@ -1,6 +1,6 @@
import PromiseRouter from '../PromiseRouter';
import PromiseRouter from '../PromiseRouter';
import * as middleware from "../middlewares";
import { Parse } from "parse/node";
import { Parse } from "parse/node";
export class PushRouter extends PromiseRouter {
@@ -46,8 +46,7 @@ export class PushRouter extends PromiseRouter {
}
}
} else {
throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED,
'Channels and query should be set at least one.');
throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED, 'Sending a push requires either "channels" or a "where" query.');
}
return where;
}