aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_responses.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-21 14:21:58 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-21 14:21:58 +0100
commitc9a819a5efdc359fd8d7a3c32e497679c92d0741 (patch)
tree05d5f3bfdde7a44ea379fae24cfeafcd3b48c1b4 /src/mint/taler-mint-httpd_responses.c
parent2ef511eece640f0e8ecd5fe3bd8dacf092624287 (diff)
handle DB connect errors
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r--src/mint/taler-mint-httpd_responses.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c
index 9ba855eea..75342cd2d 100644
--- a/src/mint/taler-mint-httpd_responses.c
+++ b/src/mint/taler-mint-httpd_responses.c
@@ -172,6 +172,21 @@ TALER_MINT_reply_internal_error (struct MHD_Connection *connection,
/**
+ * Send a response indicating a failure to talk to the Mint's
+ * database.
+ *
+ * @param connection the MHD connection to use
+ * @return a MHD result code
+ */
+int
+TALER_MINT_reply_internal_db_error (struct MHD_Connection *connection)
+{
+ return TALER_MINT_reply_internal_error (connection,
+ "Failed to connect to database");
+}
+
+
+/**
* Send a response indicating that the request was too big.
*
* @param connection the MHD connection to use