aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-03-23 08:19:44 +0000
committerChristian Grothoff <christian@grothoff.org>2012-03-23 08:19:44 +0000
commit62fea972d0310633a4572f1f3b2c07fc3c6908ec (patch)
tree2818ee58635a6cb061b8ba7468fe2a16af117bef /src/datastore/plugin_datastore_postgres.c
parent01b2f8c564418f85fa5c3663e46bb06f05d11c0b (diff)
-check return code
Diffstat (limited to 'src/datastore/plugin_datastore_postgres.c')
-rw-r--r--src/datastore/plugin_datastore_postgres.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index b9c27c7b1a..f2164ab170 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"));
}