diff options
author | Jan Nieuwenhuizen <janneke@gnu.org> | 2017-07-17 15:00:01 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-07-17 15:13:41 +0200 |
commit | 2e009ae7cdaee4ce871b3a79d50118762ee29fb6 (patch) | |
tree | 0a8422362b075dc6d0338630f5bb6674e443265b /tests/publish.scm | |
parent | 7ad2a4f1d50e5a397010ec90dba79feaca296a81 (diff) | |
download | patches-2e009ae7cdaee4ce871b3a79d50118762ee29fb6.tar patches-2e009ae7cdaee4ce871b3a79d50118762ee29fb6.tar.gz |
daemon: Flush the sink upon 'exportPath' errors.
Prior to this change, errors such as wrong permissions on
/etc/guix/signing-key.sec would give:
guix-daemon: nix/libutil/serialise.cc:15: virtual nix::BufferedSink::~BufferedSink(): Assertion `!bufPos' failed.
This patch correctly propagates the error to the client and thus changes
that to:
error: build failed: file `/etc/guix/signing-key.sec' should be secret (inaccessible to everybody else)!
* nix/nix-daemon/nix-daemon.cc (performOp): Wrap 'exportPath' call in
'try' block.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests/publish.scm')
0 files changed, 0 insertions, 0 deletions