Skip to content

Commit 38adbdc

Browse files
committed
Fix cargo pkg installed error
Signed-off-by: paulober <[email protected]>
1 parent 6348d10 commit 38adbdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/rustUtil.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export async function downloadAndInstallRust(): Promise<boolean> {
364364
// or install probe-rs-tools
365365
const probeRsTools = "defmt-print";
366366
cargoInstResult = await cargoInstall(probeRsTools, true);
367-
if (!cargoInstResult) {
367+
if (cargoInstResult !== undefined) {
368368
void window.showErrorMessage(
369369
`Failed to install cargo package '${probeRsTools}'.` +
370370
"Please check the logs."
@@ -376,7 +376,7 @@ export async function downloadAndInstallRust(): Promise<boolean> {
376376
// install elf2uf2-rs
377377
const elf2uf2Rs = "elf2uf2-rs";
378378
cargoInstResult = await cargoInstall(elf2uf2Rs, true);
379-
if (!cargoInstResult) {
379+
if (cargoInstResult !== undefined) {
380380
void window.showErrorMessage(
381381
`Failed to install cargo package '${elf2uf2Rs}'.` +
382382
"Please check the logs."

0 commit comments

Comments
 (0)