raco pkg: better error message for bad Git URL
This commit is contained in:
parent
9272781d6d
commit
07b8007edb
|
@ -710,6 +710,11 @@
|
||||||
(define (strip-ending-newline s)
|
(define (strip-ending-newline s)
|
||||||
(regexp-replace #rx"\n$" s ""))
|
(regexp-replace #rx"\n$" s ""))
|
||||||
(log-pkg-debug (strip-ending-newline (apply format fmt args))))
|
(log-pkg-debug (strip-ending-newline (apply format fmt args))))
|
||||||
|
#:initial-error (lambda ()
|
||||||
|
(pkg-error (~a "Git checkout initial protocol failed;\n"
|
||||||
|
" the given URL might not refer to a Git repository\n"
|
||||||
|
" given URL: ~a")
|
||||||
|
pkg-url-str))
|
||||||
#:transport (string->symbol (url-scheme pkg-url)))]
|
#:transport (string->symbol (url-scheme pkg-url)))]
|
||||||
[(github)
|
[(github)
|
||||||
(match-define (list* user repo branch path)
|
(match-define (list* user repo branch path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user