Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need more info in log #10

Closed
MarkSwanson opened this issue Mar 13, 2015 · 1 comment
Closed

Need more info in log #10

MarkSwanson opened this issue Mar 13, 2015 · 1 comment

Comments

@MarkSwanson
Copy link

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()));
}

  •        Err(e) => {panic!("could not open file for writing: {}", e)}
    
  •        Err(e) => {panic!("could not open file {:?} for writing: {}", filepath, e)}
     }
    
    }
    Ok(())
@dwrensha
Copy link
Member

Good point! Fixed in 8372056.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants