Skip to content

Commit

Permalink
Abort processing if iobroker.live not reachable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 committed Oct 26, 2024
1 parent 3c0f137 commit 865608f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Branch (`master/main/dev`) is optional.
* (mcm1957) Blacklist for package/dependencies has been extended.
* (mcm1957) Recommend adapter-core 3.2.2 now.
* (mcm1957) Clearify test for "[E952] .npmignore not found". [#320]
* (mcm1957) Abort processing if iobroker.live not reachable. [#321]

### 3.1.3 (2024-10-11)
* (mcm1957) Checker no longer crash id no npm package exists.
Expand Down
2 changes: 2 additions & 0 deletions lib/M400_Repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ async function checkRepository(context) {
body = _response.data;
if (!body) {
context.errors.push('[E429] Cannot download http://repo.iobroker.live/sources-dist-latest.json');
throw('Cannot download http://repo.iobroker.live/sources-dist-latest.json'); // ABORT to avoid generating unuseable report
} else {
context.latestRepoLive = body;
}
Expand All @@ -146,6 +147,7 @@ async function checkRepository(context) {
body = _response.data;
if (!body) {
context.errors.push('[E430] Cannot download http://repo.iobroker.live/sources-dist.json');
throw('Cannot download http://repo.iobroker.live/sources-dist.json'); // ABORT to avoid generating unuseable report
} else {
context.stableRepoLive = body;
}
Expand Down

0 comments on commit 865608f

Please sign in to comment.