fix switch syntax and not throw error when install lock=TRUE

This commit is contained in:
Leandro
2018-02-12 11:56:47 +01:00
parent d2235f9918
commit 05a6af49c4
+1 -1
View File
@@ -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.