store: 'open-connection' no longer raises '&nar-error' for protocol errors.
authorLudovic Courtès <ludo@gnu.org>
Thu, 8 Dec 2016 13:03:33 +0000 (14:03 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 8 Dec 2016 22:12:11 +0000 (23:12 +0100)
commit13d5e8dae5f1282eac630dea428c5fe3dc073fb4
tree41470d93b695ea0ebfb552cb77024f92ba5fa62c
parent0c69a17efdba0c7c3da0f25800a3c3233200e47b
store: 'open-connection' no longer raises '&nar-error' for protocol errors.

* guix/store.scm (open-connection): Guard body against 'nar-error?' and
re-raise as '&nix-connection-error'.
* tests/store.scm ("connection handshake error"): New test.
guix/store.scm
tests/store.scm