mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
libstore-support: check that we can create the store
This commit is contained in:
parent
95f2b2beab
commit
98db531df2
@ -61,6 +61,10 @@ protected:
|
|||||||
const char ** params[] = {p1, p2, p3, nullptr};
|
const char ** params[] = {p1, p2, p3, nullptr};
|
||||||
|
|
||||||
store = nix_store_open(ctx, "local", params);
|
store = nix_store_open(ctx, "local", params);
|
||||||
|
if (!store) {
|
||||||
|
std::string errMsg = nix_err_msg(nullptr, ctx, nullptr);
|
||||||
|
ASSERT_NE(store, nullptr) << "Could not open store: " << errMsg;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user