mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 08:20:49 +08:00
fix switch syntax and not throw error when install lock=TRUE
This commit is contained in:
@@ -92,7 +92,7 @@ async function serve({ jobs = false, websockets = false } = {}) {
|
||||
} catch (e) {
|
||||
// Check the error.
|
||||
switch (e) {
|
||||
case (errors.ErrInstallLock, errors.ErrSettingsInit):
|
||||
case (errors.ErrInstallLock || errors.ErrSettingsInit):
|
||||
debug('setup is not currently available, migrations now being checked');
|
||||
|
||||
// The error was expected, just continue.
|
||||
|
||||
Reference in New Issue
Block a user