Permalink
Browse files

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

  • Loading branch information...
1 parent 695c8d6 commit 066c3565a91a95ddda0b7bf1f1af96bda180f0d8 @isaacs isaacs committed Jul 19, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 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) {

0 comments on commit 066c356

Please sign in to comment.