diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 22:47:03 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 22:47:03 +0100 |
commit | b162d2e45829469df5327ea25b2bab1ba1ebaab9 (patch) | |
tree | c815fd6a78faab0d4934048427d35e80a2c30cb7 /src/mint/taler-mint-httpd_responses.c | |
parent | fb124841605dabe843f4d5713e58a516ddc84d48 (diff) |
rollback should just return void
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r-- | src/mint/taler-mint-httpd_responses.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index 92bba9e21..307e6ec17 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c @@ -178,6 +178,23 @@ TALER_MINT_reply_internal_error (struct MHD_Connection *connection, /** + * Send a response indicating an error committing a + * transaction (concurrent interference). + * + * @param connection the MHD connection to use + * @return a MHD result code + */ +int +TALER_MINT_reply_commit_error (struct MHD_Connection *connection) +{ + return TALER_MINT_reply_json_pack (connection, + MHD_HTTP_BAD_REQUEST, + "{s:s}", + "error", "commit failure"); +} + + +/** * Send a response indicating a failure to talk to the Mint's * database. * |