File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
io/core/src/main/java/org/neo4j/gds/core/io/file Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -97,13 +97,19 @@ protected FileToGraphStoreImporter(
9797 public UserGraphStore run () {
9898 var fileInput = fileInput (importPath );
9999 this .progressTracker = createProgressTracker (fileInput );
100- progressTracker . beginSubTask ();
100+
101101 try {
102+ progressTracker .beginSubTask ();
102103 importGraphStore (fileInput );
103104 graphStoreBuilder .schema (graphSchemaBuilder .build ());
104- return ImmutableUserGraphStore .of (fileInput .userName (), graphStoreBuilder .build ());
105- } finally {
105+ var userGraphStore = ImmutableUserGraphStore .of (fileInput .userName (), graphStoreBuilder .build ());
106106 progressTracker .endSubTask ();
107+
108+ return userGraphStore ;
109+ } catch (Exception e ) {
110+ progressTracker .endSubTaskWithFailure ();
111+
112+ throw e ;
107113 }
108114 }
109115
You can’t perform that action at this time.
0 commit comments