Skip to content
This repository has been archived by the owner on Aug 27, 2018. It is now read-only.

Improve NixOS evaluation error messages #15

Open
edolstra opened this issue Jul 12, 2012 · 1 comment
Open

Improve NixOS evaluation error messages #15

edolstra opened this issue Jul 12, 2012 · 1 comment
Assignees

Comments

@edolstra
Copy link
Member

If a NixOS option has a value that doesn't match the type of the option, you get a giant stack trace that is pretty hard to read and obscures the actual error message in a trace (e.g. "trace: x is a string ...").

Instead we should turn off strack traces, and the option evaluation code should throw an error message like

error: option ‘services.bla.config’ must have type string but has a value of type integer in module ‘/foo/bar/configuration.nix’
@ghost ghost assigned nbp Jul 12, 2012
@edolstra
Copy link
Member Author

edolstra commented Jun 4, 2013

Likewise for undefined options (#148, #180).

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

No branches or pull requests

2 participants