mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 23:40:36 +05:30
Keep original exception when there is an error message (#710)
This commit is contained in:
parent
b6f951edb4
commit
52910ce970
@ -80,12 +80,12 @@ public class StreamInfo extends Info {
|
|||||||
// country.
|
// country.
|
||||||
//
|
//
|
||||||
// We will now detect whether the video is blocked by country or not.
|
// We will now detect whether the video is blocked by country or not.
|
||||||
String errorMsg = extractor.getErrorMessage();
|
|
||||||
|
|
||||||
if (errorMsg != null) {
|
final String errorMessage = extractor.getErrorMessage();
|
||||||
throw new ContentNotAvailableException(errorMsg);
|
if (isNullOrEmpty(errorMessage)) {
|
||||||
} else {
|
|
||||||
throw e;
|
throw e;
|
||||||
|
} else {
|
||||||
|
throw new ContentNotAvailableException(errorMessage, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user