Skip to content

Commit

Permalink
Fix issue with error throwing when no command is present
Browse files Browse the repository at this point in the history
  • Loading branch information
jbondeson committed Dec 30, 2018
1 parent 74f21b3 commit e887e17
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/renderer/local-storage/dfu-util.js
Expand Up @@ -35,11 +35,16 @@ export async function findDfuPath() {
// Just swallow
}

const onPath = await commandExists(name);
if (onPath) {
return 'dfu-util';
try {
const onPath = await commandExists(name);
if (onPath) {
return 'dfu-util';
}
} catch {
// Just swallow
}


return '';
}

Expand Down

0 comments on commit e887e17

Please sign in to comment.