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

Add error message when FileIngestionMethod is out of bounds #3656

Merged

Conversation

matthewbauer
Copy link
Member

bool coerces anything >0 to true, but in the future we may have other
file ingestion methods. This shows a better error message when the
“recursive” byte isn’t 1.

Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

LGTM. If we add one, we'll keep the existing condition for sufficient old client versions for extra safety.

src/libstore/daemon.cc Outdated Show resolved Hide resolved
bool coerces anything >0 to true, but in the future we may have other
file ingestion methods. This shows a better error message when the
“recursive” byte isn’t 1.
@matthewbauer matthewbauer force-pushed the handle-unknown-file-ingestion branch from 78bb82d to 2299ef7 Compare June 4, 2020 16:32
@edolstra edolstra merged commit d558fb9 into NixOS:master Jun 5, 2020
@Ericson2314 Ericson2314 deleted the handle-unknown-file-ingestion branch June 9, 2020 04:14
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

3 participants