guix {system,offload}: Improve reporting of syntax errors.
authorLudovic Courtès <ludo@gnu.org>
Thu, 26 Jun 2014 20:23:36 +0000 (22:23 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 26 Jun 2014 22:12:40 +0000 (00:12 +0200)
commitc1202fb1f9b805e7c7151e3d34bd4f86c86acd75
tree29253c66940610c655738e083fb47fdf2bbec655
parent80b77646a4af6073bb4a4e92f5d416716da20704
guix {system,offload}: Improve reporting of syntax errors.

* guix/scripts/system.scm (read-operating-system) <catch handler>: Add
  case for 'syntax-error'.  Correct message for default case.
* guix/scripts/offload.scm (build-machines) <catch handler>: Add case
  for 'syntax-error'.
* tests/guix-system.sh: New file.
* Makefile.am (SH_TESTS): Add it.
Makefile.am
guix/scripts/offload.scm
guix/scripts/system.scm
tests/guix-system.sh [new file with mode: 0644]