We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7050836 commit 8129ddbCopy full SHA for 8129ddb
packages/live-server/index.js
@@ -368,9 +368,17 @@ LiveServer.start = function(options) {
368
// Launch browser
369
if (openPath !== null)
370
if (typeof openPath === 'object') {
371
- openPath.forEach(p => open(openURL + p, { app: browser }));
+ openPath.forEach(p =>
372
+ open(openURL + p, { app: browser }).catch(() =>
373
+ console.log(
374
+ 'Warning: Could not open pattern lab in default browser.'
375
+ )
376
377
+ );
378
} else {
- open(openURL + openPath, { app: browser });
379
+ open(openURL + openPath, { app: browser }).catch(() =>
380
+ console.log('Warning: Could not open pattern lab in default browser.')
381
382
}
383
});
384
0 commit comments