-check return code
authorChristian Grothoff <christian@grothoff.org>
Fri, 23 Mar 2012 08:19:44 +0000 (08:19 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 23 Mar 2012 08:19:44 +0000 (08:19 +0000)
src/datastore/plugin_datastore_postgres.c

index b9c27c7b1a5bc861bbf19eca68a6a078e553c65d..f2164ab1706ed48fb6320b2624aab4dd5578c4e2 100644 (file)
@@ -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"));
 }