From: Christian Grothoff Date: Fri, 23 Mar 2012 08:19:44 +0000 (+0000) Subject: -check return code X-Git-Tag: initial-import-from-subversion-38251~14139 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=62fea972d0310633a4572f1f3b2c07fc3c6908ec;p=oweals%2Fgnunet.git -check return code --- diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c index b9c27c7b1..f2164ab17 100644 --- a/src/datastore/plugin_datastore_postgres.c +++ b/src/datastore/plugin_datastore_postgres.c @@ -827,8 +827,9 @@ static void postgres_plugin_drop (void *cls) { struct Plugin *plugin = cls; - - GNUNET_POSTGRES_exec (plugin->dbh, "DROP TABLE gn090"); + + if (GNUNET_OK != GNUNET_POSTGRES_exec (plugin->dbh, "DROP TABLE gn090")) + GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, "postgres", _("Failed to drop table from database.\n")); }