Обработка ошибок

This commit is contained in:
Book Pauk
2022-12-14 20:07:45 +07:00
parent 23a9e9154b
commit 55264314b8

View File

@@ -21,6 +21,9 @@ function initRoutes(app, wss, config) {
return;
}
if (config.mode !== 'omnireader' && config.mode !== 'liberama.top')
throw new Error(`Unknown server mode: ${config.mode}`);
initStatic(app, config);
const reader = new ReaderController(config);