about summary refs log tree commit diff
path: root/src/libstore/store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/store.cc')
-rw-r--r--src/libstore/store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc
index f73e993b880e..946be5e02b7b 100644
--- a/src/libstore/store.cc
+++ b/src/libstore/store.cc
@@ -504,7 +504,7 @@ static Hash queryHash(const Transaction & txn, const Path & storePath)
     HashType ht = parseHashType(string(s, 0, colon));
     if (ht == htUnknown)
         throw Error(format("unknown hash type `%1%' in valid-path entry for `%2%'")
-            % string(0, colon) % storePath);
+            % string(s, 0, colon) % storePath);
     return parseHash(ht, string(s, colon + 1));
 }