Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Panic with clear message when tonic_build OUT env is not set
Summary: I was sloppy in D44322620 and: 1. Used `std::env::var` instead of `std::env::var_os`. The former does `OsString` to `String` conversion, which we don't care about because `.out_dir` expects `AsRef<Path>`. 2. Used `.unwrap` without including a message as to what expectation is being violated. In D44324686 I was sloppy by leaving a needless borrow. Reviewed By: yuyashiraki Differential Revision: D44324930 fbshipit-source-id: f5b0152793d8537c70398ed83402fb6301b72f16
- Loading branch information