Skip to content

Commit 8fbb4ee

Browse files
committed
GH-5148 improved error message
1 parent 590e658 commit 8fbb4ee

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf

core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/ValueStore.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public <T extends NativeValue & Resource> T getResource(int id) throws IOExcepti
227227
return (T) new CorruptIRIOrBNode(revision, id, ((CorruptValue) resultValue).getData());
228228
}
229229
logger.warn(
230-
"Possible corrupt data consider setting the system property org.eclipse.rdf4j.sail.nativerdf.softFailOnCorruptDataAndRepairIndexes to true");
230+
"NativeStore is possibly corrupt. To attempt to repair or retrieve the data, read the documentation on http://rdf4j.org about the system property org.eclipse.rdf4j.sail.nativerdf.softFailOnCorruptDataAndRepairIndexes");
231231
}
232232

233233
return (T) resultValue;
@@ -252,7 +252,7 @@ public <T extends NativeValue & IRI> T getIRI(int id) throws IOException {
252252
return (T) new CorruptIRI(revision, id, null, ((CorruptValue) resultValue).getData());
253253
}
254254
logger.warn(
255-
"Possible corrupt data consider setting the system property org.eclipse.rdf4j.sail.nativerdf.softFailOnCorruptDataAndRepairIndexes to true");
255+
"NativeStore is possibly corrupt. To attempt to repair or retrieve the data, read the documentation on http://rdf4j.org about the system property org.eclipse.rdf4j.sail.nativerdf.softFailOnCorruptDataAndRepairIndexes");
256256
}
257257

258258
return (T) resultValue;
@@ -625,8 +625,8 @@ private <T extends IRI & NativeValue> T data2uri(int id, byte[] data) throws IOE
625625
&& (e instanceof Exception || e instanceof AssertionError)) {
626626
return (T) new CorruptIRI(revision, id, namespace, data);
627627
}
628-
logger.error(
629-
"Possible corrupt data consider setting the system property org.eclipse.rdf4j.sail.nativerdf.softFailOnCorruptDataAndRepairIndexes to true");
628+
logger.warn(
629+
"NativeStore is possibly corrupt. To attempt to repair or retrieve the data, read the documentation on http://rdf4j.org about the system property org.eclipse.rdf4j.sail.nativerdf.softFailOnCorruptDataAndRepairIndexes");
630630
throw e;
631631
}
632632

0 commit comments

Comments
 (0)