summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-17 11:21:20 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-17 11:21:20 +0200
commitd8f1f7b761a41fc027c53dcd85c2b07dd73c6d1b (patch)
tree40a92a23af452f01af6260f4de138438cb46cc0d /src/lib
parent802649c2703cb1b9991316073ca0b9e20cebe16f (diff)
downloadexchange-d8f1f7b761a41fc027c53dcd85c2b07dd73c6d1b.tar.gz
exchange-d8f1f7b761a41fc027c53dcd85c2b07dd73c6d1b.tar.bz2
exchange-d8f1f7b761a41fc027c53dcd85c2b07dd73c6d1b.zip
integrate purse expiration into test, bugfixes
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_purses_get.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/exchange_api_purses_get.c b/src/lib/exchange_api_purses_get.c
index db5111287..021954c2d 100644
--- a/src/lib/exchange_api_purses_get.c
+++ b/src/lib/exchange_api_purses_get.c
@@ -169,6 +169,11 @@ handle_purse_get_finished (void *cls,
/* Exchange does not know about transaction;
we should pass the reply to the application */
break;
+ case MHD_HTTP_GONE:
+ /* purse expired */
+ dr.hr.ec = TALER_JSON_get_error_code (j);
+ dr.hr.hint = TALER_JSON_get_error_hint (j);
+ break;
case MHD_HTTP_INTERNAL_SERVER_ERROR:
dr.hr.ec = TALER_JSON_get_error_code (j);
dr.hr.hint = TALER_JSON_get_error_hint (j);