From 2994fa434cb2aa7b987ab347848f895d42e9c9a0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Aug 2021 21:50:06 +0200 Subject: improve error message and inherit stderr as suggested by Florian --- src/pq/pq_connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3