From a784e60641f88b322ffe5d927d4ac8e228f4bd12 Mon Sep 17 00:00:00 2001 From: Alexis Hernandez Date: Fri, 13 Apr 2018 19:54:18 -0500 Subject: [PATCH] server: Fix messages on PaginatedQueryError --- server/app/com/xsn/explorer/errors/paginatedQueryErrors.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/com/xsn/explorer/errors/paginatedQueryErrors.scala b/server/app/com/xsn/explorer/errors/paginatedQueryErrors.scala index 68b9635..28b19d9 100644 --- a/server/app/com/xsn/explorer/errors/paginatedQueryErrors.scala +++ b/server/app/com/xsn/explorer/errors/paginatedQueryErrors.scala @@ -7,7 +7,7 @@ sealed trait PaginatedQueryError case object PaginatedQueryOffsetError extends PaginatedQueryError with InputValidationError { override def toPublicErrorList(messagesApi: MessagesApi)(implicit lang: Lang): List[PublicError] = { - val message = messagesApi("error.paginatedQuery.offset") + val message = messagesApi("error.paginatedQuery.offset.invalid") val error = FieldValidationError("offset", message) List(error) } @@ -15,7 +15,7 @@ case object PaginatedQueryOffsetError extends PaginatedQueryError with InputVali case class PaginatedQueryLimitError(maxValue: Int) extends PaginatedQueryError with InputValidationError { override def toPublicErrorList(messagesApi: MessagesApi)(implicit lang: Lang): List[PublicError] = { - val message = messagesApi("error.paginatedQuery.limit", maxValue) + val message = messagesApi("error.paginatedQuery.limit.invalid", maxValue) val error = FieldValidationError("limit", message) List(error) }