Skip to content

Commit

Permalink
GH-5148 improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hmottestad committed Nov 10, 2024
1 parent 590e658 commit 8fbb4ee
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public <T extends NativeValue & Resource> T getResource(int id) throws IOExcepti
return (T) new CorruptIRIOrBNode(revision, id, ((CorruptValue) resultValue).getData());
}
logger.warn(
"Possible corrupt data consider setting the system property org.eclipse.rdf4j.sail.nativerdf.softFailOnCorruptDataAndRepairIndexes to true");
"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");
}

return (T) resultValue;
Expand All @@ -252,7 +252,7 @@ public <T extends NativeValue & IRI> T getIRI(int id) throws IOException {
return (T) new CorruptIRI(revision, id, null, ((CorruptValue) resultValue).getData());
}
logger.warn(
"Possible corrupt data consider setting the system property org.eclipse.rdf4j.sail.nativerdf.softFailOnCorruptDataAndRepairIndexes to true");
"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");
}

return (T) resultValue;
Expand Down Expand Up @@ -625,8 +625,8 @@ private <T extends IRI & NativeValue> T data2uri(int id, byte[] data) throws IOE
&& (e instanceof Exception || e instanceof AssertionError)) {
return (T) new CorruptIRI(revision, id, namespace, data);
}
logger.error(
"Possible corrupt data consider setting the system property org.eclipse.rdf4j.sail.nativerdf.softFailOnCorruptDataAndRepairIndexes to true");
logger.warn(
"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");
throw e;
}

Expand Down

0 comments on commit 8fbb4ee

Please # to comment.