Fail fast (ammendment for #1047)

This commit is contained in:
Sebastian Stenzel
2020-01-14 21:46:52 +01:00
parent 362f3eac63
commit 5dc1d9b2e0
@@ -22,6 +22,7 @@ import org.cryptomator.ui.unlock.UnlockComponent;
import javax.inject.Named;
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.util.Collections;
import java.util.List;
@@ -43,9 +44,12 @@ abstract class FxApplicationModule {
}
try {
return List.of(createImageFromResource("/window_icon_32.png"), createImageFromResource("/window_icon_512.png"));
return List.of( //
createImageFromResource("/window_icon_32.png"), //
createImageFromResource("/window_icon_512.png") //
);
} catch (IOException e) {
return Collections.emptyList();
throw new UncheckedIOException("Failed to load embedded resource.", e);
}
}