[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/30: daemon: Print the line whence we expect an integer.
From: |
guix-commits |
Subject: |
13/30: daemon: Print the line whence we expect an integer. |
Date: |
Fri, 26 Nov 2021 18:53:08 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 1b1f557d888fa84b1bc818f1b221776355a7a2dd
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Fri Nov 19 17:37:44 2021 +0100
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.
---
nix/libstore/local-store.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nix/libstore/local-store.cc b/nix/libstore/local-store.cc
index d52b102..0883a4b 100644
--- 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;
}
- 08/30: gnu: erofs-utils: Update to 1.4., (continued)
- 08/30: gnu: erofs-utils: Update to 1.4., guix-commits, 2021/11/26
- 10/30: gnu: eid-mw: Disable pinentry., guix-commits, 2021/11/26
- 09/30: gnu: jitterentropy-rngd: Update to 1.2.6., guix-commits, 2021/11/26
- 14/30: gnu: netcat-openbsd: Update to 1.218-2., guix-commits, 2021/11/26
- 11/30: gnu: eid-mw: Expand description., guix-commits, 2021/11/26
- 17/30: gnu: chroma: Update to 1.20., guix-commits, 2021/11/26
- 18/30: gnu: hwinfo: Update to 21.78., guix-commits, 2021/11/26
- 15/30: build-self: Help users to submit useful bug reports., guix-commits, 2021/11/26
- 20/30: gnu: wesnoth: Update to 1.16.1., guix-commits, 2021/11/26
- 12/30: gnu: inxi-minimal: Update to 3.3.09-1., guix-commits, 2021/11/26
- 13/30: daemon: Print the line whence we expect an integer.,
guix-commits <=
- 19/30: gnu: solaar: Update to 1.0.7., guix-commits, 2021/11/26
- 21/30: gnu: libnftnl: Update to 1.2.1., guix-commits, 2021/11/26
- 22/30: gnu: nftables: Update to 1.0.1., guix-commits, 2021/11/26
- 23/30: gnu: borgmatic: Update to 1.5.21., guix-commits, 2021/11/26
- 24/30: gnu: kcov: Update to 39., guix-commits, 2021/11/26
- 16/30: gnu: exfatprogs: Update to 1.1.3., guix-commits, 2021/11/26
- 25/30: gnu: kcov: Prepare for cross-compilation., guix-commits, 2021/11/26
- 28/30: gnu: cpuid: Update to 20211121., guix-commits, 2021/11/26
- 29/30: gnu: davfs2: Update to 1.6.1., guix-commits, 2021/11/26
- 26/30: gnu: yadifa: Update to 2.5.3., guix-commits, 2021/11/26