mirror of
https://github.com/NixOS/nix.git
synced 2025-12-05 08:31:00 +01:00
Add error reporting to machine spec paser
Currently machine specification (`/etc/nix/machine`) parser fails with a vague exception if the file had incorrect format. This commit adds verbose exceptions and unit-tests for the parser.
This commit is contained in:
parent
64a3b045c1
commit
e989c83b44
5 changed files with 227 additions and 25 deletions
1
src/libstore/tests/test-data/machines.bad_format
Normal file
1
src/libstore/tests/test-data/machines.bad_format
Normal file
|
|
@ -0,0 +1 @@
|
|||
nix@scratchy.labs.cs.uu.nl - - eight
|
||||
Loading…
Add table
Add a link
Reference in a new issue