Skip to content

Commit

Permalink
Added return code to log
Browse files Browse the repository at this point in the history
  • Loading branch information
cgendreau committed Feb 5, 2024
1 parent 9ff05c2 commit a1c2c2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public CompletableFuture<UUID> export(DataExport dinaExport) throws IOException

ResponseBody body = response.body();
if (!response.isSuccessful() || body == null) {
throw new IllegalStateException("Can't read response body from object-store");
throw new IllegalStateException("Can't read response body from object-store. Returned code: " + response.code());
}
try (OutputStream outputStream = new FileOutputStream(destinationFile.toFile());
InputStream inputStream = body.byteStream()) {
Expand Down

0 comments on commit a1c2c2f

Please sign in to comment.