Skip to content
Snippets Groups Projects
Commit 143cf24f authored by Daniel Salzman's avatar Daniel Salzman
Browse files

conf/tools: use better error return code

parent f9157641
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,7 @@ int check_ref(
if (!conf_rawid_exists_txn(args->conf, args->txn, ref->name, args->data,
args->data_len)) {
args->err_str = "invalid reference";
return KNOT_EINVAL;
return KNOT_ENOENT;
}
return KNOT_EOK;
......@@ -316,7 +316,7 @@ int check_modref(
// Try to find a module with the id.
if (!conf_rawid_exists_txn(args->conf, args->txn, mod_name, id, id_len)) {
args->err_str = "invalid module reference";
return KNOT_EINVAL;
return KNOT_ENOENT;
}
return KNOT_EOK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment