guix/guix
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
..
build clojure-utils: Avoid use of '@@'. 2020-01-15 23:48:33 +01:00
build-system build-system/clojure: Provide only the right modules in scope. 2020-01-08 23:21:14 +01:00
import import: cpan: Rewrite tests to use an HTTP server instead of mocking. 2020-01-15 18:40:43 +01:00
scripts guix package: Export 'transaction-upgrade-entry'. 2020-01-16 18:30:57 +01:00
store
tests
base16.scm
base32.scm
base64.scm
build-system.scm
bzr-download.scm
cache.scm
channels.scm channels: Provide a hint when the 'guix' channel is lacking. 2020-01-09 23:33:04 +01:00
ci.scm
colors.scm
combinators.scm
config.scm.in
cpio.scm
cve.scm
cvs-download.scm
deprecation.scm deprecation: Add a two-element form for simple aliases. 2020-01-12 00:19:09 +01:00
derivations.scm
describe.scm guix package: Save provenance information when using '--manifest'. 2019-12-29 18:24:54 +01:00
diagnostics.scm
discovery.scm
docker.scm
download.scm
elf.scm
ftp-client.scm
gexp.scm gexp: Add 'raw-derivation-file'. 2020-01-04 23:44:26 +01:00
git-download.scm
git.scm download, git: Refer to the right module in 'module-use!' call. 2020-01-07 12:25:09 +01:00
glob.scm
gnu-maintenance.scm
gnupg.scm
grafts.scm
graph.scm
hg-download.scm
http-client.scm download: Do not leak file descriptors on TLS ports. 2020-01-03 16:06:26 +01:00
i18n.scm
inferior.scm More module autoload adjustments. 2020-01-15 18:40:43 +01:00
json.scm
licenses.scm
lint.scm lint: Check for more packages which should be native. 2020-01-12 23:21:59 +01:00
lzlib.scm
man-db.scm
memoization.scm
modules.scm
monad-repl.scm
monads.scm
nar.scm
packages.scm
pki.scm
profiles.scm profiles: Fix profile-derivation cross-compilation. 2019-12-29 21:26:11 +01:00
profiling.scm
progress.scm
records.scm records: Improve reporting of "invalid field specifier" errors. 2020-01-16 18:30:57 +01:00
remote.scm
repl.scm
scripts.scm
search-paths.scm
self.scm
serialization.scm serialize: Export 'dump-port*'. 2020-01-15 23:48:33 +01:00
sets.scm
ssh.scm
status.scm
store.scm profiles: Fix profile-derivation cross-compilation. 2019-12-29 21:26:11 +01:00
svn-download.scm
swh.scm
tests.scm
ui.scm records: Improve reporting of "invalid field specifier" errors. 2020-01-16 18:30:57 +01:00
upstream.scm
utils.scm Adjust module autoloads. 2020-01-06 16:31:54 +01:00
workers.scm
zlib.scm