git-version: Raise a condition instead of an error.
* guix/git-download.scm (git-version): Replace ERROR with RAISE
and CONDITION.
This is a follow-up to commit bbf6bc1acc
.
This commit is contained in:
parent
938df0de73
commit
e84d9dcd5b
1 changed files with 3 additions and 1 deletions
|
@ -179,7 +179,9 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a generic name if #f."
|
||||||
;; can happen, for example, when the user swapped the revision and commit
|
;; can happen, for example, when the user swapped the revision and commit
|
||||||
;; arguments by mistake.
|
;; arguments by mistake.
|
||||||
(when (< (string-length commit) 7)
|
(when (< (string-length commit) 7)
|
||||||
(error "git-version: commit ID unexpectedly short"))
|
(raise
|
||||||
|
(condition
|
||||||
|
(&message (message "git-version: commit ID unexpectedly short")))))
|
||||||
(string-append version "-" revision "." (string-take commit 7)))
|
(string-append version "-" revision "." (string-take commit 7)))
|
||||||
|
|
||||||
(define (git-file-name name version)
|
(define (git-file-name name version)
|
||||||
|
|
Reference in a new issue