From d5905efcda8c7a44ce557843890b52ebc20722e5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 27 May 2012 19:35:30 +0000 Subject: [PATCH] -better error message --- src/fs/test_fs_namespace.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.25.1