1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00

[187862] Incorrect Error Message when creating new file in read-only directory

This commit is contained in:
Javier Montalvo Orus 2007-05-25 13:19:45 +00:00
parent a047a03ac8
commit c07f6306ff

View file

@ -42,6 +42,7 @@
* Javier Montalvo Orus (Symbian) - improved autodetection of FTPListingParser
* Javier Montalvo Orus (Symbian) - [187096] Drag&Drop + Copy&Paste shows error message on FTP connection
* Javier Montalvo Orus (Symbian) - [187531] Improve exception thrown when Login Failed on FTP
* Javier Montalvo Orus (Symbian) - [187862] Incorrect Error Message when creating new file in read-only directory
********************************************************************************/
package org.eclipse.rse.internal.services.files.ftp;
@ -917,11 +918,11 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
if(!success)
{
throw new Exception(getFTPClient().getReplyString());
throw new RemoteFileIOException(new Exception(getFTPClient().getReplyString()));
}
}
catch (Exception e) {
throw new RemoteFileIOException(e);
throw new RemoteFileSecurityException(e);
}
return getFile(remoteParent, fileName, monitor);