Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improved error handling if anything goes wrong during S3 upload, so t…

…he root cause is reported
  • Loading branch information...
commit 1c4b2d7b308cd493731eafe1781c4f19c09cee0e 1 parent 0f68fc1
@d6y authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/main/java/com/hyperic/hudson/plugin/S3Profile.java
View
5 src/main/java/com/hyperic/hudson/plugin/S3Profile.java
@@ -109,12 +109,11 @@ public void upload(String bucketName,
}
try {
- S3Object fileObject =
- new S3Object(bucket, file.getName());
+ S3Object fileObject = new S3Object(bucket, file.getName());
fileObject.setDataInputStream(filePath.read());
this.s3.putObject(bucket, fileObject);
} catch (Exception e) {
- throw new IOException("put " + file + ": " + e);
+ throw new IOException("put " + file + ": " + e, e);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.