mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
nix ls-{nar,store}: Don't abort on missing files
This commit is contained in:
parent
b8d446829e
commit
5773d667ee
2 changed files with 5 additions and 1 deletions
|
@ -214,7 +214,7 @@ void listNar(JSONPlaceholder & res, ref<FSAccessor> accessor,
|
|||
obj.attr("target", accessor->readLink(path));
|
||||
break;
|
||||
default:
|
||||
abort();
|
||||
throw Error("path '%s' does not exist in NAR", path);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue