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 27de884 commit d6c6dc9Copy full SHA for d6c6dc9
.changeset/gorgeous-cycles-guess.md
@@ -0,0 +1,5 @@
1
+---
2
+"trigger.dev": patch
3
4
+
5
+try/catch opening the login URL
packages/cli-v3/src/commands/login.ts
@@ -204,7 +204,10 @@ export async function login(options?: LoginOptions): Promise<LoginResult> {
204
`Please visit the following URL to login:\n${chalkLink(authorizationCodeResult.url)}`
205
);
206
207
- await open(authorizationCodeResult.url);
+ try {
208
+ //this can throw an error on Ubuntu
209
+ await open(authorizationCodeResult.url);
210
+ } catch (e) {}
211
212
//poll for personal access token (we need to poll for it)
213
const getPersonalAccessTokenSpinner = spinner();
0 commit comments