* bug#46295: syntax error in package definition leads to misleading error message
@ 2021-02-04 13:41 Ricardo Wurmus
0 siblings, 0 replies; only message in thread
From: Ricardo Wurmus @ 2021-02-04 13:41 UTC (permalink / raw)
To: 46295
In (gnu packages cran) I added a snippet but forgot to quote it
properly. The snippet looked like this:
(snippet
(delete-file "inst/htmlwidgets/lib/jquery.min.js"))
Since this is evaluated right away I got an error as I tried to compile
my Guix source checkout:
error: failed to load 'gnu/packages/cran.scm': No such file or directory
This error is highly misleading as it implies that
“gnu/packages/cran.scm” could not be found, while the actual error is
that “inst/htmlwidgets/lib/jquery.min.js” does not exist. This could be
improved by catching 'system-error and reporting the file location
instead of just printing the correct error message without context.
--
Ricardo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-04 13:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 13:41 bug#46295: syntax error in package definition leads to misleading error message Ricardo Wurmus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).