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:
parent
8ecaeb4af9
commit
229295d671
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@ const membersService = {
|
|||
|
||||
membersApi.bus.on('error', function (err) {
|
||||
logging.error(err);
|
||||
if (err.fatal) {
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
return membersApi;
|
||||
|
|
Loading…
Add table
Reference in a new issue