mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Fix for locales error change
This commit is contained in:
parent
6cdfd9ebc1
commit
83e432793b
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user