A better catch when failure setting up WPR (#3146)

This commit is contained in:
Peter Hedenskog 2020-09-14 13:08:24 +02:00 committed by GitHub
parent 93885ed298
commit 525b0018ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -174,7 +174,12 @@ async function runBrowsertime() {
const engine = new browsertime.Engine(btOptions);
const urls = getURLs(parsed.argv._);
await testURLs(engine, urls);
try {
await testURLs(engine, urls);
} catch (e) {
console.error('Could not run ' + e);
process.exit(1);
}
process.exit();
}