diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-08-05 16:33:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 16:33:07 +0200 |
commit | b91dc7ebad733f557dd812f285095b700c267fa2 (patch) | |
tree | 09384943f4f199315cf166bda60a4948918b3c50 /src/libstore/local-store.cc | |
parent | 75f220a59570e4de58914fa60b0deefe5d06058c (diff) | |
parent | d3452a5ed6e7f052aad5e7fd9aaa1061b0c54652 (diff) |
Merge pull request #3730 from obsidiansystems/better-ca-parse-errors
Improve hash parsing and errors
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index f908f7d67..6b0548538 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -640,7 +640,7 @@ void LocalStore::queryPathInfoUncached(const StorePath & path, info->id = useQueryPathInfo.getInt(0); try { - info->narHash = Hash(useQueryPathInfo.getStr(1)); + info->narHash = Hash::parseAnyPrefixed(useQueryPathInfo.getStr(1)); } catch (BadHash & e) { throw Error("in valid-path entry for '%s': %s", printStorePath(path), e.what()); } |