diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-28 21:50:06 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-28 21:50:11 +0200 |
commit | 2994fa434cb2aa7b987ab347848f895d42e9c9a0 (patch) | |
tree | 0e1bd55afd1d6de2e4494b038cb2bf2349b80c59 /src | |
parent | 7a4c1fb72a78a19e6d7775472266dba3a4b23356 (diff) | |
download | gnunet-2994fa434cb2aa7b987ab347848f895d42e9c9a0.tar.gz gnunet-2994fa434cb2aa7b987ab347848f895d42e9c9a0.zip |
improve error message and inherit stderr as suggested by Florian
Diffstat (limited to 'src')
-rw-r--r-- | src/pq/pq_connect.c | 4 |
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, | |||
143 | "Applying SQL file `%s' on database %s\n", | 143 | "Applying SQL file `%s' on database %s\n", |
144 | buf, | 144 | buf, |
145 | db->config_str); | 145 | db->config_str); |
146 | psql = GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_NONE, | 146 | psql = GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_ERR, |
147 | NULL, | 147 | NULL, |
148 | NULL, | 148 | NULL, |
149 | NULL, | 149 | NULL, |
@@ -172,7 +172,7 @@ apply_patch (struct GNUNET_PQ_Context *db, | |||
172 | (0 != code) ) | 172 | (0 != code) ) |
173 | { | 173 | { |
174 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 174 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
175 | "Could not run PSQL on file %s: %d\n", | 175 | "Could not run PSQL on file %s: psql exit code was %d\n", |
176 | buf, | 176 | buf, |
177 | (int) code); | 177 | (int) code); |
178 | return GNUNET_SYSERR; | 178 | return GNUNET_SYSERR; |