Skip to content

Commit

Permalink
throw on unallowable publication date
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorrit Poelen committed Sep 5, 2024
1 parent abc049a commit caca93b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void createNewVersion(IRI coordinate, JsonNode zenodoMetadata, List<Stri

ZenodoContext ctxLocal = new ZenodoContext(this.ctx);

if (hasAllowedPublicationDate(zenodoMetadata, ctx)) {
if (!hasAllowedPublicationDate(zenodoMetadata, ctx)) {
throw new IOException("missing publication date for [" + zenodoMetadata.toPrettyString() + "]");
}

Expand Down

0 comments on commit caca93b

Please sign in to comment.