nix-community / zon2nix

Convert the dependencies in `build.zig.zon` to a Nix expression [maintainer=@figsoda]
https://discourse.nixos.org/t/31468
Mozilla Public License 2.0
71 stars 10 forks source link

Better error messages #9

Closed acristoffers closed 3 months ago

acristoffers commented 10 months ago

Adds error messages for all errors in parse.zig and changes the main function so it no longer prints a useless trace when compiled in release mode. This way the user gets an error that actually points towards the problem and is not presented with garbage output.

I added more files to the fixtures folder, but I did not add any tests for them because the error message is what matters, and I don't know if we can capture and test what error got printed.

This depends on #8 because it has an error message for missing url/hash or path in dependency.