Обработка ошибок
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user