diff --git a/LICENSE b/LICENSE.md similarity index 100% rename from LICENSE rename to LICENSE.md diff --git a/lib/connect.js b/lib/connect.js index be96789..0f135df 100644 --- a/lib/connect.js +++ b/lib/connect.js @@ -102,7 +102,12 @@ const requestToken = async () => { }; authURL += `?${queryString.stringify(params)}`; - open(authURL); + + try { + open(authURL); + } catch (err) { + console.error(`Could not open URL in browser. Please open the link: ${authURL}`); + } const token = await tokenAPI(state); config.set('token', token);