Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(TomlManifest): fail when package_root is not a directory
Currently, if you're trying to use `TomlManifest::to_real_manifest`, and you pass in something incorrect as the `package_root`, such as the path to the package's manifest, you will get a weird error that looks like this: ``` can't find library `dummy_lib`, rename file to `src/lib.rs` or specify lib.path ``` This is not very helpful, so this change makes us check that `package_root` is a directory, and reports an error early on if it isn't.
- Loading branch information