summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-28 21:50:06 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-28 21:50:11 +0200
commit2994fa434cb2aa7b987ab347848f895d42e9c9a0 (patch)
tree0e1bd55afd1d6de2e4494b038cb2bf2349b80c59 /src
parent7a4c1fb72a78a19e6d7775472266dba3a4b23356 (diff)
improve error message and inherit stderr as suggested by Florian
Diffstat (limited to 'src')
-rw-r--r--src/pq/pq_connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c
index 05e787939..a2dce3fb0 100644
--- a/src/pq/pq_connect.c
+++ b/src/pq/pq_connect.c
@@ -143,7 +143,7 @@ apply_patch (struct GNUNET_PQ_Context *db,
"Applying SQL file `%s' on database %s\n",
buf,
db->config_str);
- psql = GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_NONE,
+ psql = GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_ERR,
NULL,
NULL,
NULL,
@@ -172,7 +172,7 @@ apply_patch (struct GNUNET_PQ_Context *db,
(0 != code) )
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "Could not run PSQL on file %s: %d\n",
+ "Could not run PSQL on file %s: psql exit code was %d\n",
buf,
(int) code);
return GNUNET_SYSERR;