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/utils/access_token.ts
+24-19
Original file line number
Diff line number
Diff line change
@@ -59,15 +59,22 @@ async function provision(): Promise<string> {
59
59
break;
60
60
}
61
61
}
62
-
constopen=openCmd!==undefined
63
-
? newDeno.Command(openCmd,{
64
-
args: [url],
65
-
stderr: "piped",
66
-
stdout: "piped",
67
-
})
68
-
.spawn()
69
-
: undefined;
70
-
62
+
letopen;
63
+
if(openCmd!==undefined){
64
+
try{
65
+
open=newDeno.Command(openCmd,{
66
+
args: [url],
67
+
stderr: "piped",
68
+
stdout: "piped",
69
+
})
70
+
.spawn();
71
+
}catch(error){
72
+
wait("").start().warn(
73
+
"Unexpected error while trying to open the authorization URL in your default browser. Please report it at https://github.com/denoland/deployctl/issues/new.",
0 commit comments