From 5678472ddea3cbf71dd9467522f22f33ce97cb69 Mon Sep 17 00:00:00 2001 From: zefie Date: Wed, 30 Nov 2022 11:14:05 -0500 Subject: [PATCH] change order of configuration messages --- zefie_wtvp_minisrv/app.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/zefie_wtvp_minisrv/app.js b/zefie_wtvp_minisrv/app.js index 0014d7b0..785dd1f9 100644 --- a/zefie_wtvp_minisrv/app.js +++ b/zefie_wtvp_minisrv/app.js @@ -1946,13 +1946,6 @@ if (minisrv_config.config.ServiceVaults) { throw ("ERROR: No Service Vaults defined!"); } -if (minisrv_config.config.SessionStore) { - var SessionStore = wtvshared.returnAbsolutePath(minisrv_config.config.SessionStore); - console.log(" * Configured Session Storage at", SessionStore); -} else { - throw ("ERROR: No Session Storage Directory (SessionStore) defined!"); -} - var service_deps = new Array(); if (minisrv_config.config.ServiceDeps) { Object.keys(minisrv_config.config.ServiceDeps).forEach(function (k) { @@ -1964,6 +1957,14 @@ if (minisrv_config.config.ServiceDeps) { throw ("ERROR: No Service Dependancies Directory (SessionDeps) defined!"); } +if (minisrv_config.config.SessionStore) { + var SessionStore = wtvshared.returnAbsolutePath(minisrv_config.config.SessionStore); + console.log(" * Configured Session Storage at", SessionStore); +} else { + throw ("ERROR: No Session Storage Directory (SessionStore) defined!"); +} + + var service_ip = minisrv_config.config.service_ip; Object.keys(minisrv_config.services).forEach(function (k) { if (configureService(k, minisrv_config.services[k], true)) {