capnproto / capnpc-rust

Cap'n Proto code generation for Rust
76 stars 26 forks source link

Need more info in log #10

Closed MarkSwanson closed 9 years ago

MarkSwanson commented 9 years ago

capnpc-rust was calling panic!(), but I couldn't see what file it was trying to open. I think this patch will help others.

$ git diff diff --git a/src/codegen.rs b/src/codegen.rs index 16c9be7..93c8f11 100644 --- a/src/codegen.rs +++ b/src/codegen.rs @@ -1596,7 +1596,7 @@ pub fn main(mut inp : T) -> ::std::io::Result<()> use std::io::Write; try!(writer.write_all(text.as_bytes())); }

dwrensha commented 9 years ago

Good point! Fixed in https://github.com/dwrensha/capnpc-rust/commit/83720564c7e635dc626319e0cfae0d7667d89f72.