Skip to content

Commit

Permalink
Better diagnostics of protoc failure
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Dec 29, 2018
1 parent 0b3d0c7 commit 4d0025a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Protoc {
let mut child = self.spawn(&mut cmd)?;

if !child.wait()?.success() {
return err_other("protoc exited with non-zero exit code");
return err_other(&format!("protoc ({:?}) exited with non-zero exit code", cmd));
}

Ok(())
Expand Down

0 comments on commit 4d0025a

Please sign in to comment.