diff options
Diffstat (limited to 'src/auditor/taler-auditor-httpd_closure-lags-del.c')
-rw-r--r-- | src/auditor/taler-auditor-httpd_closure-lags-del.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/auditor/taler-auditor-httpd_closure-lags-del.c b/src/auditor/taler-auditor-httpd_closure-lags-del.c index 456866f90..3c4544d08 100644 --- a/src/auditor/taler-auditor-httpd_closure-lags-del.c +++ b/src/auditor/taler-auditor-httpd_closure-lags-del.c @@ -38,8 +38,7 @@ TAH_CLOSURE_LAGS_handler_delete (struct TAH_RequestHandler *rh, else return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - // TODO: not the correct ec - TALER_EC_AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID, + TALER_EC_AUDITOR_URI_MISSING_PATH_COMPONENT, "exchange signature invalid"); if (GNUNET_SYSERR == @@ -57,7 +56,7 @@ TAH_CLOSURE_LAGS_handler_delete (struct TAH_RequestHandler *rh, qs = TAH_plugin->delete_auditor_closure_lags (TAH_plugin->cls, row_id); - if (0 > qs) + if (0 >= qs) { // goes in here if there was an error with the transaction GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs); @@ -66,9 +65,8 @@ TAH_CLOSURE_LAGS_handler_delete (struct TAH_RequestHandler *rh, args[1]); return TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, - // TODO: not the correct ec - TALER_EC_AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID, - "exchange signature invalid"); + TALER_EC_AUDITOR_RESOURCE_NOT_FOUND, + "the requested resource does not exist"); } |