Skip to content

Commit b77940c

Browse files
committed
fix(iobroker): call correct method when translation fails
1 parent 78c8f32 commit b77940c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Placeholder for the next version (at the beginning of the line):
44
## **WORK IN PROGRESS**
55
-->
6+
## **WORK IN PROGRESS**
7+
* `iobroker` plugin: call correct method when translating news entries fails
8+
69
## 3.5.6 (2022-03-06)
710
* Add missing `fs-extra` dependency to several plugins
811

packages/plugin-iobroker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ You can suppress this check with the ${colors.bold("--no-workflow-check")} flag.
173173
const translated = await translateText(newChangelog);
174174
ioPack.common.news = prependKey(ioPack.common.news, newVersion, translated);
175175
} catch (e) {
176-
fail(`could not translate the news: ${e}`);
176+
context.cli.fatal(`Could not translate the news: ${e}`);
177177
}
178178
// If someone left this in here, also delete it
179179
delete ioPack.common.news.NEXT;

0 commit comments

Comments
 (0)