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

Confusing error message when trusted substitutor key is not valid base64 #7366

Open
spacekookie opened this issue Nov 29, 2022 · 0 comments
Open
Labels

Comments

@spacekookie
Copy link
Member

When adding a trusted substitutor key that isn't valid base64 (for example by accidentally typoing it) the resulting error message only mentions "Invalid base64 string", with no context as to where the issue is originating.

Steps To Reproduce

  1. Add new substitutor key in /etc/nix/nix.conf
  2. Typo it in some way (make it invalid base64)
  3. Run nix-shell -p hello (or similar)
  4. See error: "Invalid base64 string"

Expected behavior

A clear and concise error message.

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

No branches or pull requests

1 participant