Skip to content

Commit 83e4327

Browse files
committed
Fix for locales error change
1 parent 6cdfd9e commit 83e4327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/check-locales.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const BACKEND_ERRORS = [];
3333
try {
3434
const backendErrorsContent = fs.readFileSync(BACKEND_ERRORS_FILE, "utf8");
3535
const backendErrorsContentRes = [
36-
...backendErrorsContent.matchAll(/errors\.New\("([^"]+)"\)/g),
36+
...backendErrorsContent.matchAll(/(?:errors|eris)\.New\("([^"]+)"\)/g),
3737
];
3838
backendErrorsContentRes.map((item) => {
3939
BACKEND_ERRORS.push("error." + item[1]);

0 commit comments

Comments
 (0)