ranklist using files.ts, minor loggin improvements

This commit is contained in:
mrfry 2023-04-12 15:11:27 +02:00
parent 0f66411b96
commit c009a6f7d4
3 changed files with 8 additions and 8 deletions

View file

@ -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,
},