|
From: <ha...@us...> - 2007-09-27 00:12:41
|
Revision: 1760
http://cogkit.svn.sourceforge.net/cogkit/?rev=1760&view=rev
Author: hategan
Date: 2007-09-26 17:12:38 -0700 (Wed, 26 Sep 2007)
Log Message:
-----------
improved more error messages
Modified Paths:
--------------
trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/file/gridftp/old/FileResourceImpl.java
Modified: trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/file/gridftp/old/FileResourceImpl.java
===================================================================
--- trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/file/gridftp/old/FileResourceImpl.java 2007-09-27 00:09:15 UTC (rev 1759)
+++ trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/file/gridftp/old/FileResourceImpl.java 2007-09-27 00:12:38 UTC (rev 1760)
@@ -269,7 +269,7 @@
gridFTPClient.deleteDir(directory);
}
catch (Exception e) {
- throw translateException("Cannot delete the given directory", e);
+ throw translateException("Cannot delete " + directory, e);
}
}
@@ -291,7 +291,7 @@
gridFTPClient.get(remoteFileName, sink, mListener);
}
catch (Exception e) {
- throw translateException("Cannot retrieve the given file", e);
+ throw translateException("Cannot retrieve " + remoteFileName, e);
}
}
@@ -303,7 +303,8 @@
gridFTPClient.get(remoteFileName, localFile);
}
catch (Exception e) {
- throw translateException("Cannot retrieve the given file", e);
+ throw translateException("Cannot retrieve " + remoteFileName
+ + " to " + localFile, e);
}
}
@@ -381,7 +382,8 @@
gridFTPClient.put(localFile, remoteFileName, append);
}
catch (Exception e) {
- throw translateException("Cannot transfer the given file", e);
+ throw translateException("Cannot transfer " + localFile + " to "
+ + remoteFileName, e);
}
}
@@ -396,7 +398,7 @@
gridFTPClient.put(remoteFileName, source, mListener);
}
catch (Exception e) {
- throw translateException("Cannot transfer the given file", e);
+ throw translateException("Cannot transfer to " + remoteFileName, e);
}
}
@@ -409,7 +411,8 @@
gridFTPClient.rename(remoteFileName1, remoteFileName2);
}
catch (Exception e) {
- throw translateException("Rename for gridftp failed", e);
+ throw translateException("Renaming of " + remoteFileName1 + " to "
+ + remoteFileName2 + " failed", e);
}
}
@@ -423,7 +426,8 @@
gridFTPClient.site(cmd);
}
catch (Exception e) {
- throw translateException("Cannot change the file permissions.", e);
+ throw translateException("Cannot change the file permissions for "
+ + filename, e);
}
}
@@ -535,7 +539,7 @@
if (fi.isDevice()) {
gridFile.setFileType(GridFile.DEVICE);
}
- //Grr. softlink and all the other ones are orthogonal
+ // Grr. softlink and all the other ones are orthogonal
if (fi.isSoftLink()) {
gridFile.setFileType(GridFile.SOFTLINK);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|