Skip to content

cbindgen panics when the config file is missing #411

@jaseemabid

Description

@jaseemabid

We can easily replace the unwrap with a better error message, happy to write a patch if this would be a useful addition.

Example:

$ rm cbindge.toml
$ cbindgen --config cbindgen.toml --crate inc --output inc.h

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions