Skip to content

Commit

Permalink
Fix incorrect error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tsegismont committed Aug 12, 2015
1 parent 7bd1f1a commit 095c4ce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.hawkular.metrics.api.jaxrs.handler;

import static javax.ws.rs.core.MediaType.APPLICATION_JSON;

import static org.hawkular.metrics.api.jaxrs.filter.TenantFilter.TENANT_HEADER_NAME;
import static org.hawkular.metrics.api.jaxrs.util.ApiUtils.badRequest;
import static org.hawkular.metrics.api.jaxrs.util.ApiUtils.requestToAvailabilities;
Expand Down Expand Up @@ -96,7 +97,7 @@ public Response findMetrics(
@ApiParam(value = "List of tags filters", required = false) @QueryParam("tags") Tags tags) {

if (metricType != null && !MetricType.userTypes().contains(metricType)) {
return badRequest(new ApiError("Incorrect type param"));
return badRequest(new ApiError("Incorrect type param " + metricType.toString()));
}

Observable<Metric> metricObservable = (tags == null) ? metricsService.findMetrics(tenantId, metricType)
Expand Down

0 comments on commit 095c4ce

Please sign in to comment.