diff --git a/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java b/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java index fcee4c33776..e9bbe2b3078 100644 --- a/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java +++ b/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java @@ -35,8 +35,6 @@ import static org.elasticsearch.search.SearchShardTarget.readSearchShardTarget; /** * Represents a failure to search on a specific shard. - * - * */ public class ShardSearchFailure implements ShardOperationFailedException { @@ -58,7 +56,7 @@ public class ShardSearchFailure implements ShardOperationFailedException { this.shardTarget = ((SearchException) actual).shard(); } if (actual != null && actual instanceof ElasticSearchException) { - status = ((ElasticSearchException) t).status(); + status = ((ElasticSearchException) actual).status(); } else { status = RestStatus.INTERNAL_SERVER_ERROR; }