From 1741e8a66be3d7e5f647796f434689b0a61e1122 Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Tue, 12 Jul 2016 22:58:03 -0700 Subject: [PATCH 1/9] Improve docstring: switch-to-generation --- guix/profiles.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guix/profiles.scm b/guix/profiles.scm index 4a2ba1c..38f69dd 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm @@ -1011,7 +1011,9 @@ that fails." (define (switch-to-generation profile number) "Atomically switch PROFILE to the generation NUMBER. Return the number of -the generation that was current before switching." +the generation that was current before switching. Raise a +&profile-not-found-error when the profile does not exist. Raise a +&missing-generation-error when the generation does not exist." (let ((current (generation-number profile)) (generation (generation-file-name profile number))) (cond ((not (file-exists? profile)) -- 2.9.2