|
|
|
|
@ -142,7 +142,10 @@ const read_previous_events = (path) => {
|
|
|
|
|
return fs |
|
|
|
|
.readFile(path, { encoding: 'utf-8' }) |
|
|
|
|
.then((content) => JSON.parse(content)) |
|
|
|
|
.catch(console.error); |
|
|
|
|
.catch((error) => { |
|
|
|
|
console.error(error); |
|
|
|
|
process.exit(1); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return Promise.resolve([]); |
|
|
|
|
|