From d6f4cf37332e07cd2fff0d4819699920fcffb88a Mon Sep 17 00:00:00 2001 From: Hagen Rother Date: Thu, 27 Mar 2014 19:46:53 +0100 Subject: [PATCH] add changes as suggested by cheddar --- .../src/main/java/io/druid/client/DirectDruidClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/main/java/io/druid/client/DirectDruidClient.java b/server/src/main/java/io/druid/client/DirectDruidClient.java index a5247f5cb53..fa95ba97f11 100644 --- a/server/src/main/java/io/druid/client/DirectDruidClient.java +++ b/server/src/main/java/io/druid/client/DirectDruidClient.java @@ -292,20 +292,20 @@ public class DirectDruidClient implements QueryRunner try { jp = objectMapper.getFactory().createParser(future.get()); if (jp.nextToken() != JsonToken.START_ARRAY) { - throw new IAE("Next token wasn't a START_ARRAY, was[%s] in url [%s]", jp.getCurrentToken(), url); + throw new IAE("Next token wasn't a START_ARRAY, was[%s] from url [%s]", jp.getCurrentToken(), url); } else { jp.nextToken(); objectCodec = jp.getCodec(); } } catch (IOException e) { - throw Throwables.propagate(new RE(e, "Failure getting results from[%s]", url)); + throw new RE(e, "Failure getting results from[%s]", url); } catch (InterruptedException e) { - throw Throwables.propagate(new RE(e, "Failure getting results from[%s]", url)); + throw new RE(e, "Failure getting results from[%s]", url); } catch (ExecutionException e) { - throw Throwables.propagate(new RE(e, "Failure getting results from[%s]", url)); + throw new RE(e, "Failure getting results from[%s]", url); } } }