error checking tweaks
(cherry picked from commit 6ac38519b710e69a0c30eb0fe8fc5fa712168cb8)
This commit is contained in:
parent
c2159c8834
commit
48af0f9e41
5 changed files with 14 additions and 8 deletions
|
|
@ -62,7 +62,7 @@ impl Store {
|
|||
};
|
||||
context.check_err()?;
|
||||
if store.is_null() {
|
||||
bail!("nix_c_store_open returned a null pointer");
|
||||
panic!("nix_c_store_open returned a null pointer without an error");
|
||||
}
|
||||
let store = Store {
|
||||
inner: StoreRef {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue