Check result of reading linklet hash.
This commit is contained in:
parent
404964ea08
commit
b1e765ca31
|
@ -43,6 +43,16 @@
|
||||||
(define b-ht (if as-correlated-linklet?
|
(define b-ht (if as-correlated-linklet?
|
||||||
(read-correlated-linklet-bundle-hash in)
|
(read-correlated-linklet-bundle-hash in)
|
||||||
(read-linklet-bundle-hash in)))
|
(read-linklet-bundle-hash in)))
|
||||||
|
(unless (hash? b-ht)
|
||||||
|
(raise-arguments-error 'read-linklet-bundle-hash
|
||||||
|
"bad read result"
|
||||||
|
"expected" "hash/c"
|
||||||
|
"found" (format "~s" b-ht)
|
||||||
|
"in" (let ([n (object-name in)])
|
||||||
|
(if (path? n)
|
||||||
|
(path->string n)
|
||||||
|
in))))
|
||||||
|
|
||||||
(hash->linklet-bundle
|
(hash->linklet-bundle
|
||||||
(add-hash-code (if initial?
|
(add-hash-code (if initial?
|
||||||
(strip-submodule-references b-ht)
|
(strip-submodule-references b-ht)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user