diff --git a/src/main/java/de/unistuttgart/iste/gits/media_service/service/MediaService.java b/src/main/java/de/unistuttgart/iste/gits/media_service/service/MediaService.java index bd2aaff..a99d26f 100644 --- a/src/main/java/de/unistuttgart/iste/gits/media_service/service/MediaService.java +++ b/src/main/java/de/unistuttgart/iste/gits/media_service/service/MediaService.java @@ -606,7 +606,7 @@ private boolean doesObjectExist(final String name, final String bucketName) { return false; } catch (final Exception e) { log.error("Error while checking if object exists", e); - return false; + throw new RuntimeException(e.getMessage()); } }