authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2023-04-06 19:02:18-04:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-01-02 23:03:56-08:00
logd5b9fe35cbd392605253db8e85926f3096472b1b
tree492e3a191d69d9951ef02951cc07d94c41a18d73
parent9ae9951e345bd662bd9ea335e6a6c91a58fc455c
parent62f9775932d4ff234fb1a6e998a2d5a11c387dbb
signaturelock-open Commit is signed but in an unrecognized format.

Merge pull request #1 from Toshizuno/patch-1

Fixed wrong event handler.

1 files changed, 1 insertions(+), 4 deletions(-)

index.ts+1-4
......@@ -221,13 +221,10 @@ client.on('invalidated', function () {
221221});
222222
223223// Client warning handler (which might not require restarting but just to be safe.)
224client.on('error', function (info) {
224client.on('warn', function (info) {
225225 // Writes a log of what happened to a log file.
226226 fs.writeFileSync(
227227 path.join('logs', `${Date.now()}.warn`),
228228 `Warning: ${info}`
229229 );
230
231 // Exits the process (and hopefully restarts!)
232 process.exit();
233230});