You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cli.ts
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,11 @@ export const cliOptions = {
15
15
'Connect to a running Chrome instance using port forwarding. For more details see: https://developer.chrome.com/docs/devtools/remote-debugging/local-server.',
16
16
alias: 'u',
17
17
coerce: (url: string)=>{
18
-
newURL(url);
18
+
try{
19
+
newURL(url);
20
+
}catch{
21
+
thrownewError(`Provided browserUrl ${url} is not valid URL.`);
0 commit comments