 
 args = process.argv.slice(2)
 Indexer.build (err, result) ->
+	if err
+		throw err
 	if '--save' in args
 		result_json = JSON.stringify(result, null, 2)
 		fs.writeFileSync(__dirname + '/data/packageIndex.json', result_json)

		console.log ">> got all conda packages"

		Indexer.getPipPackages (err, pip_packages) ->
			console.log ">> got all pip packages"
			pip_names = _.keys(pip_packages)
			pip_and_conda = _.intersection(conda_names, pip_names)

			if err?
				return callback err, null
			page = cheerio.load(body)
			package_names = page.root().text().split('\n').slice(1, 10000)  # FIXME: testing on just 200 packages
			async.map(
				package_names,
				(package_name, cb) ->
