aboutsummaryrefslogtreecommitdiff
path: root/src/postgres
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-21 18:10:05 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-21 18:10:50 +0100
commit0fa8cc7c2ec1d7d7d1a901a84b7740475f8b4648 (patch)
tree27fbdf603338988542ee21b3a4cb7dde6b47c038 /src/postgres
parentffc906fa758dcc89eaabce14b754d311d3321dd4 (diff)
downloadgnunet-0fa8cc7c2ec1d7d7d1a901a84b7740475f8b4648.tar.gz
gnunet-0fa8cc7c2ec1d7d7d1a901a84b7740475f8b4648.zip
include postgres db url in error message
Diffstat (limited to 'src/postgres')
-rw-r--r--src/postgres/postgres.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/postgres/postgres.c b/src/postgres/postgres.c
index f286ff705..4798c129d 100644
--- a/src/postgres/postgres.c
+++ b/src/postgres/postgres.c
@@ -192,7 +192,8 @@ GNUNET_POSTGRES_connect (const struct GNUNET_CONFIGURATION_Handle * cfg,
192 { 192 {
193 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, 193 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
194 "postgres", 194 "postgres",
195 _("Unable to initialize Postgres: %s\n"), 195 _("Unable to connect to Postgres database '%s': %s\n"),
196 conninfo,
196 PQerrorMessage (dbh)); 197 PQerrorMessage (dbh));
197 PQfinish (dbh); 198 PQfinish (dbh);
198 return NULL; 199 return NULL;