mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-29 17:37:52 +01:00
Fix for locales error change
This commit is contained in:
1 file changed
+1
-1
@@ -33,7 +33,7 @@ const BACKEND_ERRORS = [];
|
|||||||
try {
|
try {
|
||||||
const backendErrorsContent = fs.readFileSync(BACKEND_ERRORS_FILE, "utf8");
|
const backendErrorsContent = fs.readFileSync(BACKEND_ERRORS_FILE, "utf8");
|
||||||
const backendErrorsContentRes = [
|
const backendErrorsContentRes = [
|
||||||
...backendErrorsContent.matchAll(/errors\.New\("([^"]+)"\)/g),
|
...backendErrorsContent.matchAll(/(?:errors|eris)\.New\("([^"]+)"\)/g),
|
||||||
];
|
];
|
||||||
backendErrorsContentRes.map((item) => {
|
backendErrorsContentRes.map((item) => {
|
||||||
BACKEND_ERRORS.push("error." + item[1]);
|
BACKEND_ERRORS.push("error." + item[1]);
|
||||||
|
|||||||
Reference in new issue
Block a user