Skip to content

Commit d24393a

Browse files
mrcncwendigo
authored andcommitted
Rethrow StorageException as IOException
1 parent e9dcd79 commit d24393a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/trino-filesystem-gcs/src/main/java/io/trino/filesystem/gcs/GcsOutputStream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public void close()
141141
if (e.getCode() == HTTP_PRECON_FAILED) {
142142
throw new FileAlreadyExistsException(location.toString());
143143
}
144+
throw new IOException(e);
144145
}
145146
catch (IOException e) {
146147
throw new IOException("Error closing file: " + location, e);

0 commit comments

Comments
 (0)