This commit is contained in:
@@ -19,7 +19,7 @@ public class MetricValidator {
|
||||
}
|
||||
|
||||
if(metricRepository.findByMetricName(createMetricRequest.getMetricName()).isPresent()){
|
||||
throw new BadRequestException("Metric with name '"+createMetricRequest.getMetricName()+"' already present");
|
||||
throw new BadRequestException(String.format("Metric with name %s already present", createMetricRequest.getMetricName()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user