diff options
Diffstat (limited to 'src/libstore/nar-info.cc')
-rw-r--r-- | src/libstore/nar-info.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/nar-info.cc b/src/libstore/nar-info.cc index c0c5cecd1730..4ff4c996dabd 100644 --- a/src/libstore/nar-info.cc +++ b/src/libstore/nar-info.cc @@ -5,7 +5,7 @@ namespace nix { NarInfo::NarInfo(const std::string & s, const std::string & whence) { - auto corrupt = [&]() [[noreturn]] { + auto corrupt = [&]() { throw Error("NAR info file ‘%1%’ is corrupt"); }; @@ -14,6 +14,7 @@ NarInfo::NarInfo(const std::string & s, const std::string & whence) return parseHash(s); } catch (BadHash &) { corrupt(); + return Hash(); // never reached } }; |