aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/nar-accessor.cc
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-04-03 18:03:20 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-04-03 18:17:32 +0200
commit3dac4c7874b876dc28d522aa4eddd8b4deb64378 (patch)
tree6d12fc14e4e6cf245d55920f712c1a19a031d878 /src/libstore/nar-accessor.cc
parented7885017c25940f571dc58e94ca47fa84780f9d (diff)
Add explicit case statements where -Wswitch-enum would report them
Diffstat (limited to 'src/libstore/nar-accessor.cc')
-rw-r--r--src/libstore/nar-accessor.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/nar-accessor.cc b/src/libstore/nar-accessor.cc
index 9a0003588..f0dfcb19b 100644
--- a/src/libstore/nar-accessor.cc
+++ b/src/libstore/nar-accessor.cc
@@ -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);
}