Fix: show known feed error UI more reliably (#4463)

This commit is contained in:
Paul Frazee 2024-06-10 13:01:14 -07:00 committed by GitHub
parent 7356763e49
commit 0404111f03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,8 +49,7 @@ export function FeedErrorMessage({
if (
typeof knownError !== 'undefined' &&
knownError !== KnownError.Unknown &&
(savedFeedConfig?.type === 'feed' ||
knownError === KnownError.FeedNSFPublic)
feedDesc.startsWith('feedgen')
) {
return (
<FeedgenErrorMessage
@ -272,7 +271,7 @@ function detectKnownError(
) {
return KnownError.FeedgenMisconfigured
}
if (error.includes('feed provided an invalid response')) {
if (error.includes('invalid response')) {
return KnownError.FeedgenBadResponse
}
return KnownError.FeedgenUnknown