Skip to content

Commit

Permalink
fix: Include the invalid IRI in the IllegalArgumentException when val…
Browse files Browse the repository at this point in the history
…idating IRIs in the ValidatingValueFactory (#4919)
  • Loading branch information
hmottestad authored Mar 6, 2024
2 parents c259fdf + fc20ba7 commit cb40e67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public ValidatingValueFactory(ValueFactory delegate) {
public IRI createIRI(String iri) {
try {
if (!new ParsedIRI(iri).isAbsolute()) {
throw new IllegalArgumentException("IRI must be absolute");
throw new IllegalArgumentException("IRI must be absolute: " + iri);
}
return delegate.createIRI(iri);
} catch (URISyntaxException e) {
Expand Down

0 comments on commit cb40e67

Please sign in to comment.