size: Improve error message.

Fixes guix/guix#2429

* guix/scripts/size.scm (file-size): Improve error message.

Change-Id: I0e0f6de1eded8a780d2edc07ce1fbc5c7ff73e25
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Nicolas Graves 2025-09-03 17:50:37 +02:00 committed by Ludovic Courtès
parent 68a5cdc117
commit 571509d5fa
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -67,7 +67,7 @@ if ITEM is not in the store."
;; The nar size is an approximation, but a good one. ;; The nar size is an approximation, but a good one.
(return (substitutable-nar-size info))) (return (substitutable-nar-size info)))
(() (()
(leave (G_ "no available substitute information for '~a'~%") (leave (G_ "no local build or substitute available for '~a'~%")
item))))))) item)))))))
(define profile-closure<? (define profile-closure<?