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

zio/stable
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
1 changed files with 2 additions and 3 deletions

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