guix/gnu
Ludovic Courtès fb7e6ccba7
services: configuration: Report the location of field type errors.
Previously field type errors would be reported in a non-standard way,
and without any source location information.  This fixes it.

* gnu/services/configuration.scm (configuration-field-error): Add a
'loc' parameter and honor it.  Use 'formatted-message' instead of plain
'format'.
(define-configuration-helper)[field-sanitizer]: New procedure.
Use it.  Use STEM as the identifier of the syntactic constructor of the
record type.  Add a 'sanitize' property to each field.  Remove now
useless STEM macro that would call 'validate-configuration'.
* gnu/services/mail.scm (serialize-listener-configuration): Adjust to
new 'configuration-field-error' prototype.
* tests/services/configuration.scm ("wrong type for a field"): New test.
* po/guix/POTFILES.in: Add gnu/services/configuration.scm.
2022-06-24 23:18:20 +02:00
..
bootloader image: Add support for 32bit UEFI. 2022-06-24 10:21:06 +02:00
build image: Add support for 32bit UEFI. 2022-06-24 10:21:06 +02:00
home home: Add OpenSSH service. 2022-06-17 23:39:32 +02:00
installer
machine
packages gnu: Add python-asynckivy. 2022-06-24 23:18:20 +02:00
services services: configuration: Report the location of field type errors. 2022-06-24 23:18:20 +02:00
system image: Add support for 32bit UEFI. 2022-06-24 10:21:06 +02:00
tests tests: ldap: Increase VM memory size. 2022-06-24 10:24:54 +02:00
artwork.scm
bootloader.scm
ci.scm
home.scm
image.scm
installer.scm
local.mk gnu: docker: Update to 20.10.17. 2022-06-23 23:54:19 -04:00
machine.scm
packages.scm
services.scm
system.scm
tests.scm