File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,17 @@ fn main() {
26
26
27
27
// Run each command to prepare the OUT_DIR with the protobuf definitions. We need to make sure
28
28
// to change the working directory to OUT_DIR, otherwise git will complain.
29
- let _ = Command :: new ( "sh" )
29
+ let output = Command :: new ( "sh" )
30
30
. args ( [ "-c" , protobuf_setup] )
31
31
. current_dir ( & out_dir)
32
32
. output ( )
33
- . expect ( "failed to setup protobuf definitions" ) ;
33
+ . expect ( "failed to run protobuf setup commands" ) ;
34
+ if !output. status . success ( ) {
35
+ panic ! (
36
+ "failed to setup protobuf definitions: {}" ,
37
+ String :: from_utf8_lossy( & output. stderr)
38
+ ) ;
39
+ }
34
40
35
41
// We build the resulting protobuf definitions using Rust's prost_build crate, which generates
36
42
// Rust code from the protobuf definitions.
You can’t perform that action at this time.
0 commit comments