diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2020-08-04 09:25:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 09:25:16 +0200 |
commit | 06315821d52d6b66d4c3c0adeac16ee627bfe782 (patch) | |
tree | afedb2d5e5b65322d0314431d12e0ae6a80502a8 /core | |
parent | 5a56fb6f0d0fcbb9b9d92170f21a7ec940fa5c41 (diff) | |
parent | dd5b3cac0e9f70d54d5028cced42101c2f6499bd (diff) | |
download | AntennaPod-06315821d52d6b66d4c3c0adeac16ee627bfe782.zip |
Merge pull request #4344 from ByteHamster/parser-error-more-details
Be more verbose about invalid type errors
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/syndication/handler/UnsupportedFeedtypeException.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/handler/UnsupportedFeedtypeException.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/handler/UnsupportedFeedtypeException.java index c9f9f19c8..11588967a 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/handler/UnsupportedFeedtypeException.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/handler/UnsupportedFeedtypeException.java @@ -36,6 +36,9 @@ public class UnsupportedFeedtypeException extends Exception { if (message != null) { return message; } else if (type == TypeGetter.Type.INVALID) { + if ("html".equals(rootElement)) { + return "The server returned a website, not a podcast feed"; + } return "Invalid type"; } else { return "Type " + type + " not supported"; |