From dd36cd0c0c68ffd4f13bb2cd954f73567a633164 Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 18 Sep 2017 11:31:57 +0100 Subject: [PATCH] Feedback API error improved --- lib/Pear/LocalLoop/Controller/Api/Feedback.pm | 2 +- lib/Pear/LocalLoop/Controller/Api/Upload.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Pear/LocalLoop/Controller/Api/Feedback.pm b/lib/Pear/LocalLoop/Controller/Api/Feedback.pm index eafce88..f33eaec 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Feedback.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Feedback.pm @@ -5,7 +5,7 @@ has error_messages => sub { return { email => { required => { message => 'Email is required', status => 400 }, - in_resultset => { message => 'Change meeee', status => 400 }, + in_resultset => { message => 'Email does not exist in database', status => 400 }, }, feedbacktext => { required => { message => 'Feedback is required', status => 400 }, diff --git a/lib/Pear/LocalLoop/Controller/Api/Upload.pm b/lib/Pear/LocalLoop/Controller/Api/Upload.pm index 0a75f3f..f921d11 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Upload.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Upload.pm @@ -50,8 +50,8 @@ The postcode of an organisation, optional key. Used when transaction_Type is 3. has error_messages => sub { return { transaction_type => { - required => { message => 'transaction_type is missing.', status => 400 }, - in => { message => 'transaction_type is not a valid value.', status => 400 }, + required => { message => 'transaction type is missing.', status => 400 }, + in => { message => 'transaction type is not a valid value.', status => 400 }, }, transaction_value => { required => { message => 'transaction amount is missing', status => 400 },