From da59ce8cc5777eb3059eac8ce3251d2367b5476c Mon Sep 17 00:00:00 2001 From: Everett Sochowski Date: Fri, 11 Apr 2014 10:34:00 +0200 Subject: [PATCH] Improved payment error message --- src/main/scala/code/api/1_2_1/OBPAPI1.2.1.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/code/api/1_2_1/OBPAPI1.2.1.scala b/src/main/scala/code/api/1_2_1/OBPAPI1.2.1.scala index 0b3f9b320..fc3f44aed 100644 --- a/src/main/scala/code/api/1_2_1/OBPAPI1.2.1.scala +++ b/src/main/scala/code/api/1_2_1/OBPAPI1.2.1.scala @@ -983,7 +983,7 @@ def checkIfLocationPossible(lat:Double,lon:Double) : Box[Unit] = { Full(errorJsonResponse("nothing to see here!")) } else { for { - u <- user ?~ "asdad" + u <- user ?~ "User not found" fromAccount <- BankAccount(bankId, accountId) ?~ s"account $accountId not found at bank $bankId" owner <- booleanToBox(u.ownerAccess(fromAccount), "user does not have access to owner view") view <- View.fromUrl(viewId, fromAccount) ?~ s"view $viewId not found"//TODO: this isn't actually used, unlike for GET transactions