akshat-sonic
2023-02-22 14:25:42 +05:30
parent 565beb3d5b
commit ac92d8f6e8

View File

@@ -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()));
}
}
}