gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r900 - GNUnet/src/applications/fs/ecrs


From: durner
Subject: [GNUnet-SVN] r900 - GNUnet/src/applications/fs/ecrs
Date: Sun, 12 Jun 2005 04:38:55 -0700 (PDT)

Author: durner
Date: 2005-06-12 04:38:52 -0700 (Sun, 12 Jun 2005)
New Revision: 900

Modified:
   GNUnet/src/applications/fs/ecrs/upload.c
Log:
Handle insufficient permissions

Modified: GNUnet/src/applications/fs/ecrs/upload.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/upload.c    2005-06-12 10:52:44 UTC (rev 
899)
+++ GNUnet/src/applications/fs/ecrs/upload.c    2005-06-12 11:38:52 UTC (rev 
900)
@@ -202,10 +202,15 @@
     return SYSERR;
   }
 
-  if (FS_initIndex(sock, &fileId, filename) == SYSERR) {
-       LOG(LOG_ERROR, "'%s' failed.\n", _("Initialization"));
-    return SYSERR;
-  }
+       switch(FS_initIndex(sock, &fileId, filename)) {
+               case SYSERR:
+                       LOG(LOG_ERROR, "'%s' failed.\n", _("Initialization"));
+       return SYSERR;
+               case NO:
+                       LOG(LOG_ERROR, "Indexing %s failed. Check file 
permissions and consult "
+                               "your GNUnet server's logs.\n", filename);
+       return SYSERR;                  
+       }
 
   dblock = MALLOC(sizeof(Datastore_Value) + DBLOCK_SIZE + sizeof(DBlock));
   dblock->size = htonl(sizeof(Datastore_Value) + DBLOCK_SIZE + sizeof(DBlock));





reply via email to

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