Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give better error messages when dependencies are not present (#60)
* Give better error messages when dependencies are not present This way in the common case where a dependency is not present we will give a better error than "attribute missing". This will bloat the size of the generated files a bit since a lot of the messages are repeated, but I couldn't see a nice way to do it otherwise while keeping the `ToNixExpr` functions self-contained. I was a little bit unsure about `ExeDependency` - I *think* it's trying to look in `components.exes` although at the moment it just looks at the ambient scope. I made this explicit.
- Loading branch information
Showing
2 changed files
with
90 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters