From: Christian Grothoff Date: Sun, 27 May 2012 19:35:30 +0000 (+0000) Subject: -better error message X-Git-Tag: initial-import-from-subversion-38251~13394 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d5905efcda8c7a44ce557843890b52ebc20722e5;p=oweals%2Fgnunet.git -better error message --- diff --git a/src/fs/test_fs_namespace.c b/src/fs/test_fs_namespace.c index e9cdb3676..78af1f148 100644 --- a/src/fs/test_fs_namespace.c +++ b/src/fs/test_fs_namespace.c @@ -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);