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:
parent
a047a03ac8
commit
c07f6306ff
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue