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

DM-27427: Raise an exception if trying to find datasets but we know we'll fail. #424

Merged
merged 1 commit into from Nov 4, 2020

Conversation

TallJimbo
Copy link
Member

The right solution is to return a QueryResult-like object with no result rows that isn't actually backed by a database query, but this should improve the error message in the meantime.

@TallJimbo TallJimbo changed the title DM-24427: Raise an exception if trying to find datasets but we know we'll fail. DM-27427: Raise an exception if trying to find datasets but we know we'll fail. Nov 4, 2020
"it is impossible for any such datasets to be found in any of those collections, "
"most likely because the dataset type is not registered. "
"That this error may become a successful query that returns no results in the future, "
"because queries with no results are not usually considered an error."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be "Note that this error..."? As it is, the second sentence doesn't scan.

The right solution is to return a QueryResult-like object with no
result rows that isn't actually backed by a database query, but this
should improve the error message in the meantime.
@TallJimbo TallJimbo merged commit c4bbe20 into master Nov 4, 2020
@TallJimbo TallJimbo deleted the tickets/DM-27427 branch November 4, 2020 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants