Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #984 from zalando/ARUHA-623
Browse files Browse the repository at this point in the history
fixed the validation logging message
  • Loading branch information
Kunal-Jha authored Nov 27, 2018
2 parents d3a52d4 + 603d0f0 commit 3f5e882
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public Optional<ValidationError> accepts(final JSONObject event) {
}

private Optional<ValidationError> checkDateTime(final String occurredAt) {
return validator.validate(occurredAt).map(ValidationError::new);
return validator.validate(occurredAt)
.map(e-> new ValidationError("#/metadata/occurred_at:" + e));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public Optional<String> validate(final String dateTime) {
}

} catch (final DateTimeParseException e) {
return error;
return Optional.of(error.get() + " " + e.getMessage());
}
}
}

0 comments on commit 3f5e882

Please sign in to comment.