Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CR] Rethrow lakeFS API exception as causes
Browse files Browse the repository at this point in the history
arielshaqed committed May 7, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9b35cb1 commit 340e7b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -114,7 +114,7 @@ public FSDataInputStream open(Path path, int bufSize) throws IOException {
FileSystem physicalFs = physicalPath.getFileSystem(conf);
return physicalFs.open(physicalPath, bufSize);
} catch (io.lakefs.clients.api.ApiException e) {
throw new RuntimeException("API exception: " + e.getResponseBody());
throw new RuntimeException("lakeFS API exception", e);
} catch (java.net.URISyntaxException e) {
throw new RuntimeException(e);
}

0 comments on commit 340e7b2

Please sign in to comment.