mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-16 23:48:03 +00:00
Fix for locales error change
This commit is contained in:
1 file changed
+1
-1
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user