diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-07-30 18:52:57 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-30 18:52:57 +1000 |
commit | 0897443bd8fc3cc4bad9a8d0d810b28f6fbc2820 (patch) | |
tree | 14742eae188b6a689f25ce0abec4c89b5e2d0ba0 | |
parent | d61ab759e3512d79131eb6c455862915c6b6c4d2 (diff) | |
parent | 422acf63335af2c54302f2f56c7e6956dd29db16 (diff) |
Merge pull request #1354 from joshlf/master. r=emilio
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); |