Fix for locales error change

This commit is contained in:
Jamie Curnow 2023-02-24 21:12:11 +10:00
parent 6cdfd9ebc1
commit 83e432793b
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

View File

@ -33,7 +33,7 @@ const BACKEND_ERRORS = [];
try {
const backendErrorsContent = fs.readFileSync(BACKEND_ERRORS_FILE, "utf8");
const backendErrorsContentRes = [
...backendErrorsContent.matchAll(/errors\.New\("([^"]+)"\)/g),
...backendErrorsContent.matchAll(/(?:errors|eris)\.New\("([^"]+)"\)/g),
];
backendErrorsContentRes.map((item) => {
BACKEND_ERRORS.push("error." + item[1]);