1
1
Fork 0
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:
Robert Hensing 2023-04-03 18:03:20 +02:00
parent ed7885017c
commit 3dac4c7874
5 changed files with 7 additions and 2 deletions

View file

@ -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);
}