[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: include error message f
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: include error message for invalid /admin/add/incoming POSTed data. |
Date: |
Sun, 07 May 2017 14:34:24 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 2ecab8d include error message for invalid /admin/add/incoming POSTed
data.
2ecab8d is described below
commit 2ecab8de43bd417512ea5191f9cfd81bd8e072b1
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sun May 7 14:34:10 2017 +0200
include error message for invalid /admin/add/incoming POSTed data.
---
talerbank/app/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 68c1946..7ed582f 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -448,7 +448,7 @@ def add_incoming(request):
schemas.validate_incoming_request(data)
except ValueError:
logger.error("Bad data POSTed")
- return HttpResponseBadRequest()
+ return JsonResponse(dict(error="invalid POSTed data"), status=400)
# FIXME, in the bank's current state, the debit account is
# always the one of the authenticated user; for future releases,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-bank] branch master updated: include error message for invalid /admin/add/incoming POSTed data.,
gnunet <=