diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-09-26 10:23:50 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-09-26 10:23:50 +0200 |
commit | 3b3daa75a8b1675b37413ff3f9707bef6483addd (patch) | |
tree | 273144eeae55400044650d3d5c8b78cf25096af8 | |
parent | 5e859bae099245af0b9a95b6c45059863153b95f (diff) | |
download | exchange-3b3daa75a8b1675b37413ff3f9707bef6483addd.tar.gz exchange-3b3daa75a8b1675b37413ff3f9707bef6483addd.zip |
fix #5903
-rw-r--r-- | src/auditor/taler-auditor-exchange.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/auditor/taler-auditor-exchange.c b/src/auditor/taler-auditor-exchange.c index 97ac228c6..15cad00f8 100644 --- a/src/auditor/taler-auditor-exchange.c +++ b/src/auditor/taler-auditor-exchange.c | |||
@@ -154,8 +154,8 @@ main (int argc, | |||
154 | if (GNUNET_OK != | 154 | if (GNUNET_OK != |
155 | adb->create_tables (adb->cls)) | 155 | adb->create_tables (adb->cls)) |
156 | { | 156 | { |
157 | fprintf (stderr, | 157 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
158 | "Failed to create tables in auditor's database\n"); | 158 | "Failed to create tables in auditor's database\n"); |
159 | TALER_AUDITORDB_plugin_unload (adb); | 159 | TALER_AUDITORDB_plugin_unload (adb); |
160 | return 3; | 160 | return 3; |
161 | } | 161 | } |
@@ -168,8 +168,8 @@ main (int argc, | |||
168 | session = adb->get_session (adb->cls); | 168 | session = adb->get_session (adb->cls); |
169 | if (NULL == session) | 169 | if (NULL == session) |
170 | { | 170 | { |
171 | fprintf (stderr, | 171 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
172 | "Failed to initialize database session\n"); | 172 | "Failed to initialize database session\n"); |
173 | TALER_AUDITORDB_plugin_unload (adb); | 173 | TALER_AUDITORDB_plugin_unload (adb); |
174 | return 3; | 174 | return 3; |
175 | } | 175 | } |
@@ -189,16 +189,16 @@ main (int argc, | |||
189 | } | 189 | } |
190 | if (0 > qs) | 190 | if (0 > qs) |
191 | { | 191 | { |
192 | fprintf (stderr, | 192 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
193 | "Failed to update auditor DB (%d)\n", | 193 | "Failed to update auditor database (status code: %d)\n", |
194 | qs); | 194 | qs); |
195 | TALER_AUDITORDB_plugin_unload (adb); | 195 | TALER_AUDITORDB_plugin_unload (adb); |
196 | return 3; | 196 | return 3; |
197 | } | 197 | } |
198 | if (0 == qs) | 198 | if (0 == qs) |
199 | { | 199 | { |
200 | fprintf (stderr, | 200 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
201 | "Did not update auditor DB: value existed\n"); | 201 | "Could not add exchange to auditor database: entry already existed\n"); |
202 | TALER_AUDITORDB_plugin_unload (adb); | 202 | TALER_AUDITORDB_plugin_unload (adb); |
203 | return 4; | 203 | return 4; |
204 | } | 204 | } |