Skip to content

Commit

Permalink
Add exception cause to thrown exception
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 509473556
(cherry picked from commit 56803bf)
  • Loading branch information
Googler authored and tonihei committed Feb 28, 2023
1 parent cfe861e commit 6a273a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private Downloader createDownloader(DownloadRequest request, @C.ContentType int
return constructor.newInstance(mediaItem, cacheDataSourceFactory, executor);
} catch (Exception e) {
throw new IllegalStateException(
"Failed to instantiate downloader for content type " + contentType);
"Failed to instantiate downloader for content type " + contentType, e);
}
}

Expand Down

0 comments on commit 6a273a5

Please sign in to comment.