diff --git a/racket/collects/pkg/lib.rkt b/racket/collects/pkg/lib.rkt index da68e11bc9..9e51d790ea 100644 --- a/racket/collects/pkg/lib.rkt +++ b/racket/collects/pkg/lib.rkt @@ -3015,6 +3015,10 @@ (values (path-element->string i) (call-with-input-file* (build-path pkg-path i) read)))])))) + (unless one-ht + (pkg-error (~a "could not read package catalog\n" + " catalog: ~a") + (url->string i))) (for/fold ([ht ht]) ([(k v) (in-hash one-ht)]) (if (hash-ref ht k #f) ht