Merge pull request #1297 from drew-gross/error-copy
Update error message
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import PromiseRouter from '../PromiseRouter';
|
import PromiseRouter from '../PromiseRouter';
|
||||||
import * as middleware from "../middlewares";
|
import * as middleware from "../middlewares";
|
||||||
import { Parse } from "parse/node";
|
import { Parse } from "parse/node";
|
||||||
|
|
||||||
export class PushRouter extends PromiseRouter {
|
export class PushRouter extends PromiseRouter {
|
||||||
|
|
||||||
@@ -46,8 +46,7 @@ export class PushRouter extends PromiseRouter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED,
|
throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED, 'Sending a push requires either "channels" or a "where" query.');
|
||||||
'Channels and query should be set at least one.');
|
|
||||||
}
|
}
|
||||||
return where;
|
return where;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user