guix-download: Error out when the HTTP response code is not 200.
authorLudovic Courtès <ludo@gnu.org>
Wed, 7 Nov 2012 23:13:25 +0000 (00:13 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 7 Nov 2012 23:13:25 +0000 (00:13 +0100)
commit37d19403e78e8dfab24a471bee7c8ee17346e43c
tree11dec895f346457b90aa7a4d05654d41f95b3544
parent912209ee61ced92c3246da78ed9991781fa6bf2d
guix-download: Error out when the HTTP response code is not 200.

* guix-download.in (http-fetch): Leave with an error message when
  RESPONSE's code is not 200.

* tests/guix-download.sh: New file.
* Makefile.am (TESTS): Add it.
Makefile.am
guix-download.in
tests/guix-download.sh [new file with mode: 0644]