gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21976 - in gnunet/src: fs include


From: gnunet
Subject: [GNUnet-SVN] r21976 - in gnunet/src: fs include
Date: Wed, 13 Jun 2012 18:00:14 +0200

Author: grothoff
Date: 2012-06-13 18:00:14 +0200 (Wed, 13 Jun 2012)
New Revision: 21976

Modified:
   gnunet/src/fs/fs_namespace.c
   gnunet/src/fs/gnunet-publish.c
   gnunet/src/include/gnunet_fs_service.h
Log:
-document error possibilities better (#2416)

Modified: gnunet/src/fs/fs_namespace.c
===================================================================
--- gnunet/src/fs/fs_namespace.c        2012-06-13 15:53:31 UTC (rev 21975)
+++ gnunet/src/fs/fs_namespace.c        2012-06-13 16:00:14 UTC (rev 21976)
@@ -232,7 +232,7 @@
  *
  * @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)

Modified: gnunet/src/fs/gnunet-publish.c
===================================================================
--- gnunet/src/fs/gnunet-publish.c      2012-06-13 15:53:31 UTC (rev 21975)
+++ gnunet/src/fs/gnunet-publish.c      2012-06-13 16:00:14 UTC (rev 21976)
@@ -355,7 +355,7 @@
     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 @@
     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;

Modified: gnunet/src/include/gnunet_fs_service.h
===================================================================
--- gnunet/src/include/gnunet_fs_service.h      2012-06-13 15:53:31 UTC (rev 
21975)
+++ gnunet/src/include/gnunet_fs_service.h      2012-06-13 16:00:14 UTC (rev 
21976)
@@ -2211,7 +2211,7 @@
  *
  * @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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]