File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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."
You can’t perform that action at this time.
0 commit comments