Wrap remote exception in SimpleHttpResponseHandler
Wrap the remote exception in SimpleHttpResponseHandler in a
proper PrestoException.
@@ -67,6 +67,9 @@ public class SimpleHttpResponseHandler<T>
response.getResponseBody()));
}
}
+ else {
+ cause = new PrestoException(REMOTE_TASK_ERROR, format("Unexpected response from %s", uri), cause);
+ }
callback.fatal(cause);
}
}
