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