Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for missing object result in search #1755

Merged
merged 2 commits into from
May 3, 2022
Merged

Check for missing object result in search #1755

merged 2 commits into from
May 3, 2022

Conversation

stella3d
Copy link
Contributor

@stella3d stella3d commented May 3, 2022

When the query for object info doesn't find an object, the Promise doesn't reject, but returns with an ObjectNotExistsInfo. this adds a type check, so we throw when an object isn't found.

This should resolve the way the Promise.any call works below, and thus this issue with being routed to the object error page: #1746

Now, you'll be routed to the /missing/ page properly, like this:
image

@stella3d stella3d requested review from Jibz1, apburnie and 666lcz May 3, 2022 21:24
@stella3d stella3d self-assigned this May 3, 2022
@stella3d stella3d merged commit f2b37b5 into main May 3, 2022
@stella3d stella3d deleted the search-obj-throw branch May 3, 2022 21:41
longbowlu pushed a commit that referenced this pull request May 12, 2022
* check return value of object query

* lint changes
punwai pushed a commit that referenced this pull request Jul 27, 2022
* check return value of object query

* lint changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants