TEMP: prefer NIX_ERR_UNKNOWN
(until i properly understand the use case for NIX_ERR_RECOVERABLE)
This commit is contained in:
parent
a64c61e3d3
commit
ede5d7c308
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ nix_err nix_register_plugin(nix_c_context * context, char * plugin)
|
|||
context->last_err_code = NIX_OK;
|
||||
if (plugin == nullptr) {
|
||||
// TODO: should this be `NIX_ERR_RECOVERABLE` or `NIX_ERR_UNKNOWN`?
|
||||
return nix_set_err_msg(context, NIX_ERR_RECOVERABLE, "Plugin is null");
|
||||
return nix_set_err_msg(context, NIX_ERR_UNKNOWN, "Plugin is null");
|
||||
}
|
||||
|
||||
void * handle = dlopen("libnixmainc.so", RTLD_LAZY | RTLD_GLOBAL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue