diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-04-07 18:11:21 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-04-08 22:54:53 +0200 |
commit | adf95a810d757453bc8f7cce74c9bfdeb316603b (patch) | |
tree | 1c58dcfd486ced8014faf521e1bd2430f28581f7 /guix/import/opam.scm | |
parent | b08cdfc6d363e9ca63118303b4628542c54a612d (diff) |
import: Properly report "no specific version" errors.
* guix/import/cpan.scm (latest-release): Use 'raise' instead of
'error'.
* guix/import/elpa.scm (latest-release): Likewise.
* guix/import/hackage.scm (latest-release): Likewise.
* guix/import/minetest.scm (latest-minetest-release): Likewise.
* guix/import/opam.scm (latest-release): Likewise.
* guix/import/stackage.scm (latest-lts-release): Likewise.
Diffstat (limited to 'guix/import/opam.scm')
-rw-r--r-- | guix/import/opam.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/import/opam.scm b/guix/import/opam.scm index e336936306..eed68e7a93 100644 --- a/guix/import/opam.scm +++ b/guix/import/opam.scm @@ -29,6 +29,7 @@ #:use-module (srfi srfi-1) #:use-module (srfi srfi-2) #:use-module ((srfi srfi-26) #:select (cut)) + #:use-module (srfi srfi-34) #:use-module ((web uri) #:select (string->uri uri->string)) #:use-module ((guix build utils) #:select (dump-port find-files mkdir-p)) #:use-module (guix build-system) @@ -417,7 +418,7 @@ package in OPAM." (define* (latest-release package #:key (version #f)) "Return an <upstream-source> for the latest release of PACKAGE." (when version - (error + (raise (formatted-message (G_ "~a updater doesn't support updating to a specific version, sorry.") "opam"))) |