refs #4823 New error handler
This commit is contained in:
parent
f3d9ad8ff0
commit
17e3e4dfbf
|
@ -59,7 +59,8 @@ class Floriday {
|
|||
|
||||
await utils.separator(`${cycle++} ${(cycle == 2 ? 'Cycle' : 'Cycles')}`);
|
||||
} catch (err) {
|
||||
if (err?.original?.code === 'ER_SOCKET_UNEXPECTED_CLOSE') throw err;
|
||||
if (err?.original?.code === 'ER_SOCKET_UNEXPECTED_CLOSE' || (err?.message).substring(0, 24) === 'SequelizeConnectionError')
|
||||
throw err;
|
||||
utils.handler('critical', err);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue