Exit with code 1 on quiet startup failures. Still delete unix socket if one exists.

This commit is contained in:
L. Kärkkäinen 2023-10-20 12:40:04 +01:00
parent ab19d7b5dd
commit e6c0f3990c

View File

@ -881,7 +881,8 @@ class StartupMixin(metaclass=SanicMeta):
except ServerKilled:
exit_code = 1
except SanicException as e:
kwargs = {}
exit_code = 1
kwargs = primary_server_info.settings
if e.quiet:
error_logger.error(str(e))
else: