[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-bank] branch master updated: return error object
From: |
gnunet |
Subject: |
[taler-bank] branch master updated: return error object |
Date: |
Thu, 10 Jun 2021 16:15:55 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 3ab7d22 return error object
3ab7d22 is described below
commit 3ab7d22b116e523c6934cc756f677e343d5e1cf8
Author: MS <ms@taler.net>
AuthorDate: Thu Jun 10 16:15:52 2021 +0200
return error object
---
talerbank/app/views.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 439887f..63387b7 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -924,8 +924,13 @@ def twg_add_incoming(request, user_account, acct_id):
}
)
# Here means this public key was used already: must fail.
- return HttpResponse(status=409) # CONFLICT.
-
+ return JsonResponse(
+ {
+ "code": 5114, # TALER_EC_BANK_DUPLICATE_RESERVE_PUB_SUBJECT
+ "hint": "The reserve public cannot be used multiple times."
+ },
+ status=HTTPStatus.CONFLICT
+ )
@csrf_exempt
@require_POST
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-bank] branch master updated: return error object,
gnunet <=