Pass exception to thrown AssertionError in shortuct icon generation.

fork-5.53.8
Alex Hart 2021-04-26 09:29:11 -03:00
rodzic e0c38f7c72
commit eb1daf4a20
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -113,7 +113,7 @@ public final class AvatarUtil {
}
return Icon.createWithAdaptiveBitmap(glideRequest.submit().get());
} catch (ExecutionException | InterruptedException e) {
throw new AssertionError("This call should not fail.");
throw new AssertionError("This call should not fail.", e);
}
}
@ -126,7 +126,7 @@ public final class AvatarUtil {
}
return IconCompat.createWithAdaptiveBitmap(glideRequest.submit().get());
} catch (ExecutionException | InterruptedException e) {
throw new AssertionError("This call should not fail.");
throw new AssertionError("This call should not fail.", e);
}
}