diff --git a/guix/packages.scm b/guix/packages.scm index 57bc148002f5d5ffadf8aed6fecc8af026166bcb..7f45417ea2a81cd189f9a6121fdcaea58646674f 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -476,11 +476,11 @@ (define (goto port line column) (match (package-location package) (($ <location> file line column) (match (search-path %load-path file) - ((? string? file) + ((? string? file-found) (catch 'system-error (lambda () ;; In general we want to keep relative file names for modules. - (call-with-input-file file + (call-with-input-file file-found (lambda (port) (goto port line column) (match (read port)