mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 19:19:20 -05:00
daemon: Print the line whence we expect an integer.
* nix/libstore/local-store.cc (LocalStore::getLineFromSubstituter): Include the malformed substituter stream line in the error message.
This commit is contained in:
parent
3887c1f3b3
commit
1b1f557d88
1 changed files with 2 additions and 1 deletions
|
@ -839,7 +839,8 @@ template<class T> T LocalStore::getIntLineFromSubstituter(Agent & run)
|
||||||
{
|
{
|
||||||
string s = getLineFromSubstituter(run);
|
string s = getLineFromSubstituter(run);
|
||||||
T res;
|
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;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue