guix: platform: Use srfi-34's raise instead of raise-exception.

* guix/platform.scm (lookup-platform-by-system)
(lookup-platform-by-target)
(lookup-platform-by-target-or-system): Use srfi-34's raise instead of
raise-exception.
This commit is contained in:
Josselin Poiret 2023-07-10 11:09:32 +02:00
parent b4fe82bd8a
commit d17879cd0d
No known key found for this signature in database
GPG Key ID: 505E40B916171A8A
1 changed files with 6 additions and 6 deletions

View File

@ -120,7 +120,7 @@ exception."
(let ((s (platform-system platform)))
(and (string? s) (string=? s system))))
(platforms))
(raise-exception (condition (&platform-not-found-error
(raise (condition (&platform-not-found-error
(target-or-system system))))))
(define (lookup-platform-by-target target)
@ -130,7 +130,7 @@ exception."
(let ((t (platform-target platform)))
(and (string? t) (string=? t target))))
(platforms))
(raise-exception (condition (&platform-not-found-error
(raise (condition (&platform-not-found-error
(target-or-system target))))))
(define (lookup-platform-by-target-or-system target-or-system)
@ -138,7 +138,7 @@ exception."
&PLATFORM-NOT-FOUND-ERROR when no platform could be found."
(or (false-if-platform-not-found (lookup-platform-by-target target-or-system))
(false-if-platform-not-found (lookup-platform-by-system target-or-system))
(raise-exception (condition (&platform-not-found-error
(raise (condition (&platform-not-found-error
(target-or-system target-or-system))))))
(define (platform-system->target system)