Skip to content

Commit

Permalink
Merge pull request #1297 from drew-gross/error-copy
Browse files Browse the repository at this point in the history
Update error message
  • Loading branch information
flovilmart committed Mar 31, 2016
2 parents 8a6903a + eeb3331 commit dbf64a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Routers/PushRouter.js
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit dbf64a6

Please sign in to comment.