Display a message before we update the search index
Otherwise it looks as if `lein search` has locked up for minutes or is in an infinite loop.
This commit is contained in:
parent
80fa726879
commit
14ccb65e3e
1 changed files with 3 additions and 1 deletions
|
@ -117,7 +117,9 @@ Also accepts a second parameter for fetching successive pages."
|
|||
(System/setProperty "java.io.tmpdir" (str new-tmp))
|
||||
(doseq [context contexts]
|
||||
(when (refresh? (.getRepositoryUrl context) project)
|
||||
(update-index context)))
|
||||
(do
|
||||
(println "Updating the search index. This may take a few minutes...")
|
||||
(update-index context))))
|
||||
;; TODO: improve error message when page isn't numeric
|
||||
(search-repository query contexts (Integer. page))
|
||||
(finally
|
||||
|
|
Loading…
Reference in a new issue