From 0fa8cc7c2ec1d7d7d1a901a84b7740475f8b4648 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 21 Nov 2016 18:10:05 +0100 Subject: include postgres db url in error message --- src/postgres/postgres.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/postgres/postgres.c') diff --git a/src/postgres/postgres.c b/src/postgres/postgres.c index f286ff7058..4798c129d3 100644 --- a/src/postgres/postgres.c +++ b/src/postgres/postgres.c @@ -192,7 +192,8 @@ GNUNET_POSTGRES_connect (const struct GNUNET_CONFIGURATION_Handle * cfg, { GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "postgres", - _("Unable to initialize Postgres: %s\n"), + _("Unable to connect to Postgres database '%s': %s\n"), + conninfo, PQerrorMessage (dbh)); PQfinish (dbh); return NULL; -- cgit v1.2.3-70-g09d2