1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-09 06:30:36 +02:00
Files
guix/tests
Ludovic Courtès 47212fc763 records: Improve reporting of "invalid field specifier" errors.
Previously users would just see:

  error: invalid field specifier

without source location or hints.

* guix/records.scm (expand): Add optional 'parent-form' parameter and
pass it to 'syntax-violation' when it is true.
(make-syntactic-constructor): Pass S as a third argument to
'report-invalid-field-specifier'.
* guix/ui.scm (report-load-error): For 'syntax-error', show SUBFORM or
FORM in the message.
* tests/records.scm ("define-record-type* & wrong field specifier"): Add
a 'subform' parameter and adjust test accordingly.
("define-record-type* & wrong field specifier, identifier"): New test.
* tests/guix-system.sh: Add test.
2020-01-16 18:30:57 +01:00
..
2018-09-04 17:25:11 +02:00
2020-01-04 23:44:26 +01:00
2019-12-12 17:56:58 +01:00
2018-09-07 11:40:22 +02:00
2019-04-10 17:09:47 +02:00
2020-01-16 15:27:20 +01:00
2019-12-08 23:14:03 +01:00
2019-12-12 17:56:57 +01:00
2019-12-26 12:29:44 +01:00
2018-09-04 17:25:11 +02:00
2020-01-16 18:30:57 +01:00
2019-03-24 00:13:53 +01:00
2019-04-10 17:09:47 +02:00
2019-06-14 21:57:39 +02:00