Skip to content

Commit

Permalink
print stacktrace if exception caught
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed May 20, 2024
1 parent da7e96a commit 8272ef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/gdcc/spi/export/debug/DebugExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public void exportDataset(ExportDataProvider dataProvider, OutputStream outputSt
// Dataverse and should not be closed in the Exporter.
outputStream.flush();
} catch (Exception ex) {
System.out.println("Exception caught in Debug exporter. Printing stacktrace...");
ex.printStackTrace();
// If anything goes wrong, an Exporter should throw an ExportException.
throw new ExportException("Unknown exception caught during export: " + ex);
}
Expand Down

0 comments on commit 8272ef8

Please sign in to comment.