change order of configuration messages

This commit is contained in:
zefie
2022-11-30 11:14:05 -05:00
parent d93ff2e2a6
commit 5678472dde

View File

@@ -1946,13 +1946,6 @@ if (minisrv_config.config.ServiceVaults) {
throw ("ERROR: No Service Vaults defined!"); 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(); var service_deps = new Array();
if (minisrv_config.config.ServiceDeps) { if (minisrv_config.config.ServiceDeps) {
Object.keys(minisrv_config.config.ServiceDeps).forEach(function (k) { 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!"); 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; var service_ip = minisrv_config.config.service_ip;
Object.keys(minisrv_config.services).forEach(function (k) { Object.keys(minisrv_config.services).forEach(function (k) {
if (configureService(k, minisrv_config.services[k], true)) { if (configureService(k, minisrv_config.services[k], true)) {