From eeb33311675672be484c73149e4d3c053c2f3502 Mon Sep 17 00:00:00 2001 From: Drew Gross Date: Thu, 31 Mar 2016 00:19:42 -0700 Subject: [PATCH] Update error message --- src/Routers/PushRouter.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Routers/PushRouter.js b/src/Routers/PushRouter.js index c3af0d28..babbeb27 100644 --- a/src/Routers/PushRouter.js +++ b/src/Routers/PushRouter.js @@ -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; }