Fix: show known feed error UI more reliably (#4463)
parent
7356763e49
commit
0404111f03
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue