More detailed AzureDataSegmentKiller error messgaes

This commit is contained in:
Charles Allen 2015-07-27 13:35:40 -07:00
parent 5f1f4424eb
commit fe7818ddd2
1 changed files with 5 additions and 2 deletions

View File

@ -56,8 +56,11 @@ public class AzureDataSegmentKiller implements DataSegmentKiller
try {
azureStorage.emptyCloudBlobDirectory(containerName, dirPath);
}
catch (StorageException | URISyntaxException e) {
throw new SegmentLoadingException(e, "Couldn't kill segment[%s]", segment.getIdentifier());
catch(StorageException e){
throw new SegmentLoadingException(e, "Couldn't kill segment[%s]: [%s]", segment.getIdentifier(), e.getExtendedErrorInformation() == null ? null : e.getExtendedErrorInformation().getErrorMessage());
}
catch (URISyntaxException e) {
throw new SegmentLoadingException(e, "Couldn't kill segment[%s]: [%s]", segment.getIdentifier(), e.getReason());
}
}