mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
return not found if rss feed not found
This commit is contained in:
parent
d572a9e3e4
commit
6004b51956
1 changed files with 5 additions and 0 deletions
|
|
@ -257,6 +257,11 @@ export const subscribeResolver = authorized<
|
|||
}
|
||||
} catch (error) {
|
||||
log.error('failed to subscribe', error)
|
||||
if (error instanceof Error && error.message === 'Status code 404') {
|
||||
return {
|
||||
errorCodes: [SubscribeErrorCode.NotFound],
|
||||
}
|
||||
}
|
||||
return {
|
||||
errorCodes: [SubscribeErrorCode.BadRequest],
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue