daemon: Print the line whence we expect an integer.
[jackhill/guix/guix.git] / nix / libstore / local-store.cc
index d52b102..0883a4b 100644 (file)
@@ -839,7 +839,8 @@ template<class T> T LocalStore::getIntLineFromSubstituter(Agent & run)
 {
     string s = getLineFromSubstituter(run);
     T res;
-    if (!string2Int(s, res)) throw Error("integer expected from stream");
+    if (!string2Int(s, res))
+        throw Error(format("integer expected from stream: %1%") % s);
     return res;
 }