deduplication: Fix incorrect use of 'throw'.
authorLudovic Courtès <ludo@gnu.org>
Mon, 2 Jul 2018 22:01:20 +0000 (00:01 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 2 Jul 2018 22:39:11 +0000 (00:39 +0200)
* guix/store/deduplication.scm (get-temp-link): In handler, fix call to
'throw'.

guix/store/deduplication.scm

index d3139eb..b1cd887 100644 (file)
@@ -88,7 +88,7 @@ LINK-PREFIX."
       (lambda args
         (if (= (system-error-errno args) EEXIST)
             (try (tempname-in link-prefix))
-            (throw 'system-error args))))))
+            (apply throw args))))))
 
 ;; There are 3 main kinds of errors we can get from hardlinking: "Too many
 ;; things link to this" (EMLINK), "this link already exists" (EEXIST), and