Skip to content

Commit

Permalink
Avoid crash if some file cannot be downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 committed Jan 20, 2025
1 parent aa740b7 commit 4089042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ npx @iobroker/repochecker https://github.com/ioBroker/ioBroker.javascript --loca
-->

## Changelog
### **WORK IN PROGRESS**

- (mcm1957) Avoid crash if some file cannot be downloaded.

### 3.3.1 (2025-01-19)

- (mcm1957) Report malformed semver specifications has been fixed.
Expand Down
2 changes: 1 addition & 1 deletion lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function downloadFile(githubUrl, path, binary, noError) {
return response.data;
} catch (e) {
(!noError || gDebug) && console.error(`Cannot download ${githubUrl}${path || ''} ${e}`);
throw e;
return '';
}
} else {
console.log(`Download local ${path || ''}`);
Expand Down

0 comments on commit 4089042

Please sign in to comment.