From 83e432793bf5620d762d74afb101cca08bba3de4 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Fri, 24 Feb 2023 21:12:11 +1000 Subject: [PATCH] Fix for locales error change --- frontend/check-locales.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/check-locales.js b/frontend/check-locales.js index cc52dd8e..1856b59b 100755 --- a/frontend/check-locales.js +++ b/frontend/check-locales.js @@ -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]);