Add missing localization

This commit is contained in:
Johannes Loher 2021-02-07 14:00:26 +01:00
parent 09b4117306
commit ff3c09f009
3 changed files with 7 additions and 3 deletions

View file

@ -150,7 +150,9 @@ async function askGmModifier(
} else {
const innerForm = html[0].querySelector("form");
if (!innerForm) {
throw new Error(); // TODO: localize
throw new Error(
game.i18n.format("DS4.ErrorCouldNotFindHtmlElement", { htmlElement: "form" }),
);
}
resolve(innerForm);
}