-better error message
authorChristian Grothoff <christian@grothoff.org>
Sun, 27 May 2012 19:35:30 +0000 (19:35 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 27 May 2012 19:35:30 +0000 (19:35 +0000)
src/fs/test_fs_namespace.c

index e9cdb367601365fa7f34e85a02c8e2a8833fd326..78af1f1488d7263459d32288bafcc1fb0307c254 100644 (file)
@@ -258,6 +258,13 @@ sks_cont (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg)
   char *msg;
   struct GNUNET_FS_BlockOptions bo;
 
+  if (NULL == uri)
+  {
+    fprintf (stderr, "Error publishing: %s\n", emsg);
+    err = 1;
+    GNUNET_FS_stop (fs);
+    return;
+  }
   meta = GNUNET_CONTAINER_meta_data_create ();
   msg = NULL;
   ksk_uri = GNUNET_FS_uri_parse ("gnunet://fs/ksk/ns-search", &msg);