Hiding exception from user

This commit is contained in:
Kai Zimmermann
2016-03-15 15:42:10 +01:00
parent 618de8813d
commit 9bb53df162

View File

@@ -49,8 +49,7 @@ public class TenantConfigurationPollingDurationValidator implements TenantConfig
} catch (final DateTimeParseException ex) {
throw new TenantConfigurationValidatorException(
String.format("The given configuration value is expected as a string in the format %s.",
DurationHelper.DURATION_FORMAT),
ex);
DurationHelper.DURATION_FORMAT));
}
if (!DurationHelper.durationRangeValidator(minDuration, maxDuration).isWithinRange(tenantConfigurationValue)) {