We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6f951e commit 52910ceCopy full SHA for 52910ce
1 file changed
extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java
@@ -80,12 +80,12 @@ public static StreamInfo getInfo(StreamExtractor extractor) throws ExtractionExc
80
// country.
81
//
82
// We will now detect whether the video is blocked by country or not.
83
- String errorMsg = extractor.getErrorMessage();
84
85
- if (errorMsg != null) {
86
- throw new ContentNotAvailableException(errorMsg);
87
- } else {
+ final String errorMessage = extractor.getErrorMessage();
+ if (isNullOrEmpty(errorMessage)) {
88
throw e;
+ } else {
+ throw new ContentNotAvailableException(errorMessage, e);
89
}
90
91
0 commit comments