Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve protoc not found error message (#937)
- fixes missing whitespace between the error message and the OS-specific hint - more succinct wording in error message - capitalization ("debian" -> "Debian") - consistent grammar tenses, slightly more formal and direct tone - `os_specific_hint` now has hard breaks at 80 chars (just like `error_msg`) Before: ``` --- stderr thread 'main' panicked at /home/allan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-build-0.12.1/src/lib.rs:1475:10: Could not find `protoc` installation and this build crate cannot proceed without this knowledge. If `protoc` is installed and this crate had trouble finding it, you can set the `PROTOC` environment variable with the specific path to your installed `protoc` binary.If you're on debian, try `apt-get install protobuf-compiler` or download it from https://github.com/protocolbuffers/protobuf/releases For more information: https://docs.rs/prost-build/#sourcing-protoc ``` Proposed: ``` --- stderr thread 'main' panicked at tests/single-include/build.rs:7:10: called `Result::unwrap()` on an `Err` value: Custom { kind: NotFound, error: "Could not find `protoc`. If `protoc` is installed, try setting the `PROTOC` environment variable to the path of the `protoc` binary. To install it on Debian, run `apt-get install protobuf-compiler`. It is also available at https://github.com/protocolbuffers/protobuf/releases For more information: https://docs.rs/prost-build/#sourcing-protoc" } ``` Co-authored-by: LocalAdmin <al@ayz.ai>
- Loading branch information