diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-21 18:10:05 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-21 18:10:50 +0100 |
commit | 0fa8cc7c2ec1d7d7d1a901a84b7740475f8b4648 (patch) | |
tree | 27fbdf603338988542ee21b3a4cb7dde6b47c038 /src/postgres/postgres.c | |
parent | ffc906fa758dcc89eaabce14b754d311d3321dd4 (diff) |
include postgres db url in error message
Diffstat (limited to 'src/postgres/postgres.c')
-rw-r--r-- | src/postgres/postgres.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |