mirror of
				https://gitlab.com/MrFry/mrfrys-node-server
				synced 2025-04-01 20:24:18 +02:00 
			
		
		
		
	ranklist using files.ts, minor loggin improvements
This commit is contained in:
		| @@ -44,7 +44,9 @@ export const validateAndSetupFiles = (): boolean => { | ||||
|         } | ||||
|  | ||||
|         if (file.warningIfMissing && !fileExists) { | ||||
|             const warningMsg = [`File "${file.path}" does not exist! (${key})`] | ||||
|             const warningMsg = [ | ||||
|                 `Optional file "${file.path}" does not exist! (${key})`, | ||||
|             ] | ||||
|             if (file.description) { | ||||
|                 warningMsg.push(`Should be: ${file.description}`) | ||||
|             } | ||||
| @@ -81,7 +83,7 @@ const filesFiles = { | ||||
|     httpsFiles: { | ||||
|         path: 'data/httpsfiles.json', | ||||
|         description: | ||||
|             'file paths for https functionality (privkey, chain files). Optional if https server is not used', | ||||
|             'file paths for https functionality (privkey, chain files)', | ||||
|         schema: HttpsFilesSchema, | ||||
|         warningIfMissing: true, | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user