records: Improve reporting of invalid field specifiers.
authorLudovic Courtès <ludo@gnu.org>
Thu, 14 Jul 2016 16:58:36 +0000 (18:58 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 14 Jul 2016 17:07:07 +0000 (19:07 +0200)
commitbabc2c80a7e1f1b5e72fd1685ef6604b93157a8e
tree5a6988c157c2efafe0da57d04b37e3f99db77dd0
parentdb8f6b34121b392df12b551b3f7ca16349dc7018
records: Improve reporting of invalid field specifiers.

Fixes <http://bugs.gnu.org/23969>.
Reported by Vincent Legoll <vincent.legoll@gmail.com>.

* guix/records.scm (report-invalid-field-specifier): New procedure.
* tests/records.scm ("define-record-type* & wrong field specifier"): New
test.
guix/records.scm
tests/records.scm