Skip to content

Commit

Permalink
fix(iobroker): call correct method when translation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Mar 10, 2022
1 parent 78c8f32 commit b77940c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
Placeholder for the next version (at the beginning of the line):
## **WORK IN PROGRESS**
-->
## **WORK IN PROGRESS**
* `iobroker` plugin: call correct method when translating news entries fails

## 3.5.6 (2022-03-06)
* Add missing `fs-extra` dependency to several plugins

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-iobroker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ You can suppress this check with the ${colors.bold("--no-workflow-check")} flag.
const translated = await translateText(newChangelog);
ioPack.common.news = prependKey(ioPack.common.news, newVersion, translated);
} catch (e) {
fail(`could not translate the news: ${e}`);
context.cli.fatal(`Could not translate the news: ${e}`);
}
// If someone left this in here, also delete it
delete ioPack.common.news.NEXT;
Expand Down

0 comments on commit b77940c

Please sign in to comment.