Skip to content

Commit

Permalink
apparent typo in collection-search looks like error should be raise-a…
Browse files Browse the repository at this point in the history
…rgument-error (#3285)
  • Loading branch information
jbclements committed Jul 8, 2020
1 parent 38d92bd commit 39a8a50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkgs/racket-test/tests/setup/collection-search.rkt
Expand Up @@ -59,3 +59,7 @@
l))
(when file
(check-search-finds-one `(lib ,(~a coll "/" file)))))))

(check-exn
#px"contract violation"
(λ () (collection-search 1234 #:combine list)))
2 changes: 1 addition & 1 deletion racket/collects/setup/collection-search.rkt
Expand Up @@ -11,7 +11,7 @@
#:break? [break? (lambda (r) #f)]
#:all-possible-roots? [all-possible-roots? #f])
(unless (normalized-lib-module-path? mp)
(error 'collection-search "normalized-lib-module-path?" mp))
(raise-argument-error 'collection-search "normalized-lib-module-path?" mp))
(define els (string-split (cadr mp) "/"))
(define coll-str (car els))
(define coll-sym (string->symbol coll-str))
Expand Down

0 comments on commit 39a8a50

Please sign in to comment.