diff options
author | zimoun <zimon.toutoune@gmail.com> | 2021-08-06 11:05:17 -0700 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-09-01 23:41:42 +0200 |
commit | be13e2be08feb88d868f911d8f55b0451fe15e10 (patch) | |
tree | 35127fcd5b9494c028a377acd5b306f8fccf3361 /guix/scripts/import/go.scm | |
parent | f95bdeb93a30b89c821627aa91da4ef3afaeb5af (diff) |
import: go: Improve error handling.
* guix/import/go.scm (go-module->guix-package*): Handle errors, remove
memoize.
(go-module-recursive-import): Remove 'guard', add memoize.
* guix/scripts/import/go.scm (guix-import-go): Adjust.
* tests/go.scm: Adjust.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix/scripts/import/go.scm')
-rw-r--r-- | guix/scripts/import/go.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guix/scripts/import/go.scm b/guix/scripts/import/go.scm index e08a1e427e..f5cfea8683 100644 --- a/guix/scripts/import/go.scm +++ b/guix/scripts/import/go.scm @@ -112,10 +112,10 @@ that are not yet in Guix")) (map package->definition* (apply go-module-recursive-import arguments)) ;; Single import. - (let ((sexp (apply go-module->guix-package arguments))) + (let ((sexp (apply go-module->guix-package* arguments))) (unless sexp - (leave (G_ "failed to download meta-data for module '~a'~%") - module-name)) + (leave (G_ "failed to download meta-data for module '~a'.~%") + name)) (package->definition* sexp)))))) (() (leave (G_ "too few arguments~%"))) |