Skip to content

Commit

Permalink
chore(protobuf): provide an indicative message on protoc prebuilt err…
Browse files Browse the repository at this point in the history
…or (#842)
  • Loading branch information
AlonLStarkWare authored Sep 18, 2024
1 parent fa8057c commit 158f318
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/papyrus_protobuf/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use std::io::Result;

fn main() -> Result<()> {
println!("Building");
let (protoc_bin, _) = protoc_prebuilt::init("27.0").unwrap();
let (protoc_bin, _) = protoc_prebuilt::init("27.0")
.expect("Please run `gh auth login` to enable protoc compilation");
env::set_var("PROTOC", protoc_bin);
prost_build::compile_protos(
&[
Expand Down

0 comments on commit 158f318

Please sign in to comment.