Skip to content

Commit cb40e67

Browse files
authored
fix: Include the invalid IRI in the IllegalArgumentException when validating IRIs in the ValidatingValueFactory (#4919)
2 parents c259fdf + fc20ba7 commit cb40e67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/model/src/main/java/org/eclipse/rdf4j/model/impl/ValidatingValueFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public ValidatingValueFactory(ValueFactory delegate) {
6969
public IRI createIRI(String iri) {
7070
try {
7171
if (!new ParsedIRI(iri).isAbsolute()) {
72-
throw new IllegalArgumentException("IRI must be absolute");
72+
throw new IllegalArgumentException("IRI must be absolute: " + iri);
7373
}
7474
return delegate.createIRI(iri);
7575
} catch (URISyntaxException e) {

0 commit comments

Comments
 (0)