Skip to content

Commit 10eed50

Browse files
committed
Wrapping exception to add offending path
1 parent fd928ee commit 10eed50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/factsmission/psps/RepositoryProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
import java.util.Map;
4141
import java.util.Map.Entry;
4242
import java.util.Set;
43-
import java.util.logging.Level;
44-
import java.util.logging.Logger;
4543

4644
import org.apache.clerezza.commons.rdf.Graph;
4745
import org.apache.clerezza.commons.rdf.IRI;
@@ -111,6 +109,8 @@ protected void loadStuffToGraph(URL stuffURL, String path, String rdfType) throw
111109
}
112110
Graph graph = parser.parse(contentInputStream, rdfType, baseIRI);
113111
graphs.put(baseIRI, graph);
112+
} catch (RuntimeException ex) {
113+
throw new RuntimeException("Processing file at "+path, ex);
114114
}
115115
} catch (IllegalArgumentException ex) {
116116
throw new RuntimeException("Something bad happened", ex);

0 commit comments

Comments
 (0)