mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 14:02:42 +01:00
Add explicit case statements where -Wswitch-enum would report them
This commit is contained in:
parent
ed7885017c
commit
3dac4c7874
5 changed files with 7 additions and 2 deletions
|
|
@ -275,6 +275,7 @@ json listNar(ref<FSAccessor> accessor, const Path & path, bool recurse)
|
|||
obj["type"] = "symlink";
|
||||
obj["target"] = accessor->readLink(path);
|
||||
break;
|
||||
case FSAccessor::Type::tMissing:
|
||||
default:
|
||||
throw Error("path '%s' does not exist in NAR", path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue