pkg - Improving error message on bad github urls

This commit is contained in:
Jay McCarthy 2013-01-09 07:34:56 -07:00
parent f3a3c64720
commit 7cddc64e5a

View File

@ -415,6 +415,10 @@
(update-install-info-orig-pkg
(match type
['github
(unless checksum
(pkg-error (~a "could not find checksum for github package source, which implies it doesn't exist\n"
" source: ~a")
pkg))
(match-define (list* user repo branch path)
(map path/param-path (url-path/no-slash pkg-url)))
(define new-url