Skip to content

Commit

Permalink
fail installation when puppeteer errors downloading chromium (puppete…
Browse files Browse the repository at this point in the history
…er#654)

This patch starts failing npm installation when puppeteer errors downloading chromium.
  • Loading branch information
aslushnikov authored Sep 2, 2017
1 parent 64124df commit 9d0ad79
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ Downloader.downloadRevision(platform, revision, onProgress)
.catch(onError);

function onError(error) {
console.error(`ERROR: Failed to download chromium r${revision}!
- Download chromium manually:
${revisionInfo.url}
- Extract chromium into ${revisionInfo.folderPath}
* Chromium executable should be at ${revisionInfo.executablePath}`);
console.error(`ERROR: Failed to download Chromium r${revision}! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.`);
process.exit(1);
}

let progressBar = null;
Expand Down

0 comments on commit 9d0ad79

Please sign in to comment.