Skip to content
Snippets Groups Projects
Commit aee39901 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

ISS-1323: address MR

parent c06f61b2
No related branches found
No related tags found
1 merge request!36ISS-1323: improve proper handling of upload/download
......@@ -45,7 +45,6 @@ class HaaSFileTransferImp implements HaaSFileTransfer {
try (InputStream is = file.getInputStream()) {
scpClient.upload(is, destFile, file.getLength(), file.getLastTime(),
progress);
}
catch (JSchException | IOException e) {
throw new HaaSClientException("An upload of " + file + " to " + destFile +
......@@ -64,9 +63,6 @@ class HaaSFileTransferImp implements HaaSFileTransfer {
fileName + "'";
scpClient.download(fileToDownload, rFile, progress);
}
catch (final InterruptedIOException e) {
throw e;
}
catch (JSchException | IOException e) {
throw new HaaSClientException("A download of " + fileName + " to " +
workDirectory + " failed: " + e.getMessage());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment