guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/08: profiles: Use a &message error condition instead of 'error'.


From: Ludovic Courtès
Subject: 07/08: profiles: Use a &message error condition instead of 'error'.
Date: Mon, 04 May 2015 21:31:02 +0000

civodul pushed a commit to branch master
in repository guix.

commit 88aab8e3499ef6b6cb63e736ce324bb7910f85dd
Author: Ludovic Courtès <address@hidden>
Date:   Mon May 4 22:41:31 2015 +0200

    profiles: Use a &message error condition instead of 'error'.
    
    * guix/profiles.scm (sexp->manifest): Use 'raise' instead of 'error'.
---
 guix/profiles.scm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/guix/profiles.scm b/guix/profiles.scm
index fd2afc0..8445e00 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -278,7 +278,8 @@ procedure is here for backward-compatibility and will 
eventually vanish."
                                   search-paths))))
            name version output path deps search-paths)))
     (_
-     (error "unsupported manifest format" sexp))))
+     (raise (condition
+             (&message (message "unsupported manifest format")))))))
 
 (define (read-manifest port)
   "Return the packages listed in MANIFEST."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]