0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Exited process when members-api fatally errors (#12489)

closes https://github.com/TryGhost/Ghost/issues/12448

This adds handling to force the process to exit when we receive an error
from the members-api on initialisation.
This commit is contained in:
Fabien 'egg' O'Carroll 2021-01-28 16:02:00 +00:00 committed by Daniel Lockyer
parent 8ecaeb4af9
commit 229295d671
No known key found for this signature in database
GPG key ID: FFBC6FA2A6F6ABC1

View file

@ -72,6 +72,9 @@ const membersService = {
membersApi.bus.on('error', function (err) {
logging.error(err);
if (err.fatal) {
process.exit(1);
}
});
}
return membersApi;