diff options
author | Joshua Liebow-Feeser <joshlf@google.com> | 2018-07-29 17:51:06 -0700 |
---|---|---|
committer | Joshua Liebow-Feeser <joshlf@google.com> | 2018-07-29 17:51:06 -0700 |
commit | 422acf63335af2c54302f2f56c7e6956dd29db16 (patch) | |
tree | 14742eae188b6a689f25ce0abec4c89b5e2d0ba0 | |
parent | d61ab759e3512d79131eb6c455862915c6b6c4d2 (diff) |
Improve error message when libclang fails
-rw-r--r-- | src/ir/context.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs index a85f70ba..30c45dcc 100644 --- a/src/ir/context.rs +++ b/src/ir/context.rs @@ -562,7 +562,12 @@ impl BindgenContext { &clang_args, &options.input_unsaved_files, parse_options, - ).expect("TranslationUnit::parse failed") + ).expect("libclang error; possible causes include: +- Invalid flag syntax +- Unrecognized flags +- Invalid flag arguments +- File I/O errors +If you encounter an error missing from this list, please file an issue or a PR!") }; let target_info = clang::TargetInfo::new(&translation_unit); |