-document error possibilities better (#2416)
authorChristian Grothoff <christian@grothoff.org>
Wed, 13 Jun 2012 16:00:14 +0000 (16:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 13 Jun 2012 16:00:14 +0000 (16:00 +0000)
src/fs/fs_namespace.c
src/fs/gnunet-publish.c
src/include/gnunet_fs_service.h

index c88dbb591489d47b83d06f9aaa42f51beee1872d..0c7b445ad0034d698d880d320daa70e2ed77f19a 100644 (file)
@@ -232,7 +232,7 @@ END:
  *
  * @param h handle to the file sharing subsystem
  * @param name name to use for the namespace
- * @return handle to the namespace, NULL on error
+ * @return handle to the namespace, NULL on error (i.e. invalid filename)
  */
 struct GNUNET_FS_Namespace *
 GNUNET_FS_namespace_create (struct GNUNET_FS_Handle *h, const char *name)
index 24e49d3694cf9d9cf50ed6719cfd36d531df6cb4..4b13a16bd10509763e051fbe0ed1d2ed84d40a39 100644 (file)
@@ -355,7 +355,7 @@ uri_ksk_continuation (void *cls, const struct GNUNET_FS_Uri *ksk_uri,
     ns = GNUNET_FS_namespace_create (ctx, pseudonym);
     if (ns == NULL)
     {
-      FPRINTF (stderr, _("Failed to create namespace `%s'\n"), pseudonym);
+      FPRINTF (stderr, _("Failed to create namespace `%s' (illegal filename?)\n"), pseudonym);
       ret = 1;
     }
     else
@@ -609,7 +609,7 @@ run (void *cls, char *const *args, const char *cfgfile,
     namespace = GNUNET_FS_namespace_create (ctx, pseudonym);
     if (NULL == namespace)
     {
-      FPRINTF (stderr, _("Could not create namespace `%s'\n"), pseudonym);
+      FPRINTF (stderr, _("Failed to create namespace `%s' (illegal filename?)\n"), pseudonym);
       GNUNET_FS_stop (ctx);
       ret = 1;
       return;
index eaff183205ba8ad8d19e18793333afc408569144..086fec5eb7089f75aebb85591f71f8b19415c708 100644 (file)
@@ -2211,7 +2211,7 @@ GNUNET_FS_namespace_advertise_cancel (struct GNUNET_FS_AdvertisementContext *ac)
  *
  * @param h handle to the file sharing subsystem
  * @param name name to use for the namespace
- * @return handle to the namespace, NULL on error
+ * @return handle to the namespace, NULL on error (i.e. invalid filename)
  */
 struct GNUNET_FS_Namespace *
 GNUNET_FS_namespace_create (struct GNUNET_FS_Handle *h, const char *name);