summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-23 10:18:31 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-23 10:18:31 +0100
commitea3354ae0d2af69e6953514719838f74809301a9 (patch)
treef95c07c2f134b84c92f8255724476685ce74a34f
parentffc4beff54cf48874c04b8416c74f90a1364e25c (diff)
downloadmerchant-ea3354ae0d2af69e6953514719838f74809301a9.tar.gz
merchant-ea3354ae0d2af69e6953514719838f74809301a9.tar.bz2
merchant-ea3354ae0d2af69e6953514719838f74809301a9.zip
fix ftbfs
-rw-r--r--src/backend/taler-merchant-httpd_track-transaction.c2
-rw-r--r--src/backend/taler-merchant-httpd_track-transfer.c38
2 files changed, 20 insertions, 20 deletions
diff --git a/src/backend/taler-merchant-httpd_track-transaction.c b/src/backend/taler-merchant-httpd_track-transaction.c
index 7f5d747f..abc5d8cc 100644
--- a/src/backend/taler-merchant-httpd_track-transaction.c
+++ b/src/backend/taler-merchant-httpd_track-transaction.c
@@ -671,7 +671,7 @@ wtid_cb (void *cls,
(tcc->tctx,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_MHD_make_error
- (TALER_EC_TRACK_TRANSACTION_DB_FETCH_FAILED,
+ (TALER_EC_TRACK_TRANSACTION_DB_FETCH_TRANSACTION_ERROR,
"Fail to query database about proofs"));
return;
}
diff --git a/src/backend/taler-merchant-httpd_track-transfer.c b/src/backend/taler-merchant-httpd_track-transfer.c
index aadde40e..415401ed 100644
--- a/src/backend/taler-merchant-httpd_track-transfer.c
+++ b/src/backend/taler-merchant-httpd_track-transfer.c
@@ -470,24 +470,24 @@ check_transfer (void *cls,
/* Build the `TrackTransferConflictDetails` */
rctx->response
= TALER_MHD_make_json_pack (
- "{s:I, s:s, s:o, s:I, s:o, s:o, s:s, s:o, s:o}",
- "code",
- (json_int_t) TALER_EC_TRACK_TRANSFER_CONFLICTING_REPORTS,
- "hint",
- "disagreement about deposit valuation",
- "exchange_deposit_proof", exchange_proof,
- "conflict_offset",
- (json_int_t) rctx->current_offset,
- "exchange_transfer_proof",
- rctx->original_response,
- "coin_pub", GNUNET_JSON_from_data_auto (
- coin_pub),
- "h_contract_terms",
- GNUNET_JSON_from_data_auto (&ttd->h_contract_terms),
- "amount_with_fee", TALER_JSON_from_amount (
- amount_with_fee),
- "deposit_fee", TALER_JSON_from_amount (
- deposit_fee));
+ "{s:I, s:s, s:o, s:I, s:o, s:o, s:s, s:o, s:o}",
+ "code",
+ (json_int_t) TALER_EC_TRACK_TRANSFER_CONFLICTING_REPORTS,
+ "hint",
+ "disagreement about deposit valuation",
+ "exchange_deposit_proof", exchange_proof,
+ "conflict_offset",
+ (json_int_t) rctx->current_offset,
+ "exchange_transfer_proof",
+ rctx->original_response,
+ "coin_pub", GNUNET_JSON_from_data_auto (
+ coin_pub),
+ "h_contract_terms",
+ GNUNET_JSON_from_data_auto (&ttd->h_contract_terms),
+ "amount_with_fee", TALER_JSON_from_amount (
+ amount_with_fee),
+ "deposit_fee", TALER_JSON_from_amount (
+ deposit_fee));
return;
}
rctx->check_transfer_result = GNUNET_OK;
@@ -1049,7 +1049,7 @@ MH_handler_track_transfer (struct TMH_RequestHandler *rh,
GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_TRACK_TRANSFER_DB_FETCH_FAILED,
+ TALER_EC_TRACK_TRANSFER_DB_FETCH_DEPOSIT_ERROR,
"Fail to query database about proofs");
}
if (0 != rctx->response_code)