Skip to content

Commit 416a049

Browse files
committed
Add error message on pop-up cancel
1 parent ea0b13a commit 416a049

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils/manage.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ export async function stopLocalStack(
183183

184184
export async function openLicensePage() {
185185
const url = new URL("https://app.localstack.cloud/settings/auth-tokens");
186-
await env.openExternal(Uri.parse(url.toString()));
186+
const openSuccessful = await env.openExternal(Uri.parse(url.toString()));
187+
if (!openSuccessful) {
188+
window.showErrorMessage(
189+
`Open LocalStack License page in browser by entering the URL manually: ${url.toString()}`,
190+
);
191+
}
187192
}
188193

189194
async function showInformationMessage(

0 commit comments

Comments
 (0)