From fe7818ddd22fec2ba0d5a58852ea4358751e26e8 Mon Sep 17 00:00:00 2001 From: Charles Allen Date: Mon, 27 Jul 2015 13:35:40 -0700 Subject: [PATCH] More detailed AzureDataSegmentKiller error messgaes --- .../io/druid/storage/azure/AzureDataSegmentKiller.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/azure-extensions/src/main/java/io/druid/storage/azure/AzureDataSegmentKiller.java b/extensions/azure-extensions/src/main/java/io/druid/storage/azure/AzureDataSegmentKiller.java index 5517e0d0332..cbee7a3558b 100644 --- a/extensions/azure-extensions/src/main/java/io/druid/storage/azure/AzureDataSegmentKiller.java +++ b/extensions/azure-extensions/src/main/java/io/druid/storage/azure/AzureDataSegmentKiller.java @@ -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()); } }