1
0
Fork 0
forked from svrjs/svrjs

Lint out the codebase

This commit is contained in:
Dorian Niemiec 2024-08-25 14:24:18 +02:00
parent 6461728eee
commit eebada191b

View file

@ -336,7 +336,7 @@ let middleware = [
require("./middleware/checkForbiddenPaths.js"),
require("./middleware/nonStandardCodesAndHttpAuthentication.js"),
require("./middleware/redirectTrailingSlashes.js"),
...mods, // Load SVR.JS mods as middleware
...mods, // Load SVR.JS mods as middleware
require("./middleware/defaultHandlerChecks.js"),
require("./middleware/status.js"),
require("./middleware/staticFileServingAndDirectoryListings.js"),
@ -372,6 +372,6 @@ if (wwwrootError) throw wwwrootError;
if (configJSONRErr) throw configJSONRErr;
if (configJSONPErr) throw configJSONPErr;
modLoadingErrors.forEach((modLoadingError) => {
console.log("Error while loading \"" + modLoadingError.modName + "\" mod:");
console.log('Error while loading "' + modLoadingError.modName + '" mod:');
console.log(modLoadingError.error);
});