mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
fix: nix_clear_err in nix_flake_* functions
This commit is contained in:
parent
a0a1d00370
commit
1a3789e222
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
|
||||
nix_flake_settings * nix_flake_settings_new(nix_c_context * context)
|
||||
{
|
||||
nix_clear_err(context);
|
||||
try {
|
||||
auto settings = nix::make_ref<nix::flake::Settings>();
|
||||
return new nix_flake_settings{settings};
|
||||
|
@ -25,6 +26,7 @@ void nix_flake_settings_free(nix_flake_settings * settings)
|
|||
nix_err nix_flake_settings_add_to_eval_state_builder(
|
||||
nix_c_context * context, nix_flake_settings * settings, nix_eval_state_builder * builder)
|
||||
{
|
||||
nix_clear_err(context);
|
||||
try {
|
||||
settings->settings->configureEvalSettings(builder->settings);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue