[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2005 - GNUnet/src/applications/fs/ecrs
From: |
durner |
Subject: |
[GNUnet-SVN] r2005 - GNUnet/src/applications/fs/ecrs |
Date: |
Sun, 28 Aug 2005 07:32:23 -0700 (PDT) |
Author: durner
Date: 2005-08-28 07:32:20 -0700 (Sun, 28 Aug 2005)
New Revision: 2005
Modified:
GNUnet/src/applications/fs/ecrs/upload.c
Log:
msgs
Modified: GNUnet/src/applications/fs/ecrs/upload.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/upload.c 2005-08-28 14:24:58 UTC (rev
2004)
+++ GNUnet/src/applications/fs/ecrs/upload.c 2005-08-28 14:32:20 UTC (rev
2005)
@@ -168,6 +168,8 @@
memset(&chk, 0, sizeof(CHK));
if (isDirectory(filename)) {
BREAK();
+ /* Should not happen */
+ LOG(LOG_ERROR, "Cannot upload file `%s', it seems to be a directory!",
filename);
return SYSERR;
}
if (0 == assertIsFile(filename)) {
@@ -177,11 +179,17 @@
return SYSERR;
}
if (OK != getFileSize(filename,
- &filesize))
+ &filesize)) {
+ LOG(LOG_ERROR, _("Cannot get size of file `%s'"), filename);
+
return SYSERR;
+ }
sock = getClientSocket();
- if (sock == NULL)
+ if (sock == NULL) {
+ LOG(LOG_ERROR, _("Not connected to gnunetd."));
+
return SYSERR;
+ }
eta = 0;
if (upcb != NULL)
upcb(filesize, 0, eta, upcbClosure);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2005 - GNUnet/src/applications/fs/ecrs,
durner <=