1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

[272335] [dstore] not handling case where upload fails

This commit is contained in:
David McKnight 2009-04-15 15:40:55 +00:00
parent c603b0e645
commit ad5309e396

View file

@ -54,6 +54,7 @@
* David McKnight (IBM) - [261375] [dstore] problem comparing virtual path when getting cached element * David McKnight (IBM) - [261375] [dstore] problem comparing virtual path when getting cached element
* David McKnight (IBM) - [256609] [dstore] need to make sure element is resolved properly before finding it's command descriptors * David McKnight (IBM) - [256609] [dstore] need to make sure element is resolved properly before finding it's command descriptors
* David McKnight (IBM) - [270468] [dstore] FileServiceSubSystem.list() returns folders when only FILE_TYPE_FILES is requested * David McKnight (IBM) - [270468] [dstore] FileServiceSubSystem.list() returns folders when only FILE_TYPE_FILES is requested
* David McKnight (IBM) - [272335] [dstore] not handling case where upload fails
*******************************************************************************/ *******************************************************************************/
package org.eclipse.rse.internal.services.dstore.files; package org.eclipse.rse.internal.services.dstore.files;
@ -686,6 +687,7 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
String resultStr = result.getSource(); String resultStr = result.getSource();
while (!resultStr.equals("success")) while (!resultStr.equals("success"))
{ {
// sleep until the upload is complete // sleep until the upload is complete
try { try {
Thread.sleep(200); Thread.sleep(200);
@ -693,7 +695,14 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
catch (InterruptedException e){ catch (InterruptedException e){
} }
resultStr = result.getSource(); resultStr = result.getSource();
if (resultStr.equals("failed")){
String msgTxt = NLS.bind(ServiceResources.FILEMSG_COPY_FILE_FAILED, remotePath);
SystemMessage msg = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msgTxt);
throw new SystemMessageException(msg);
}
} }
} }
} }
} }