Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Print a warning when the search index builds for the first time

  • Loading branch information...
commit 066c3565a91a95ddda0b7bf1f1af96bda180f0d8 1 parent 695c8d6
@isaacs isaacs authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/utils/npm-registry-client/get.js
View
4 lib/utils/npm-registry-client/get.js
@@ -76,6 +76,10 @@ function requestAll_ (c, data, cb) {
cb = function () {}
}
+ if (c === 0) {
+ log.warn("Building the index for the first time, please be patient")
+ }
+
var uri = "/-/all/since?startkey=" + c
, cache = path.join(npm.cache, "-/all", ".cache.json")
GET(uri, function (er, updates, _, res) {
Please sign in to comment.
Something went wrong with that request. Please try again.