HCoop
/
jackhill
/
guix
/
guix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
daemon: Print the line whence we expect an integer.
[jackhill/guix/guix.git]
/
nix
/
libstore
/
local-store.cc
diff --git
a/nix/libstore/local-store.cc
b/nix/libstore/local-store.cc
index
d52b102
..
0883a4b
100644
(file)
--- a/
nix/libstore/local-store.cc
+++ b/
nix/libstore/local-store.cc
@@
-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;
}