Exit with code 1 on quiet startup failures. Still delete unix socket if one exists.
This commit is contained in:
parent
ab19d7b5dd
commit
e6c0f3990c
|
@ -881,7 +881,8 @@ class StartupMixin(metaclass=SanicMeta):
|
||||||
except ServerKilled:
|
except ServerKilled:
|
||||||
exit_code = 1
|
exit_code = 1
|
||||||
except SanicException as e:
|
except SanicException as e:
|
||||||
kwargs = {}
|
exit_code = 1
|
||||||
|
kwargs = primary_server_info.settings
|
||||||
if e.quiet:
|
if e.quiet:
|
||||||
error_logger.error(str(e))
|
error_logger.error(str(e))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user