Skip to content

Commit 2a06895

Browse files
committed
Add try-catch around activation
1 parent 04808ad commit 2a06895

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/utils/license.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ export async function checkIsLicenseValid(outputChannel: LogOutputChannel) {
1818
}
1919

2020
export async function activateLicense(outputChannel: LogOutputChannel) {
21-
await execLocalStack(["license", "activate"], {
22-
outputChannel,
23-
});
21+
try {
22+
await execLocalStack(["license", "activate"], {
23+
outputChannel,
24+
});
25+
} catch (error) {
26+
outputChannel.error(error instanceof Error ? error : String(error));
27+
}
2428
}
2529

2630
export async function activateLicenseUntilValid(

0 commit comments

Comments
 (0)