fix: exit on errors
This commit is contained in:
@@ -42,7 +42,7 @@ async function run() {
|
||||
// scheduled running
|
||||
if (interval === 0) return;
|
||||
logger.debug(`Starting interval (${interval}s)...`);
|
||||
runInterval(fetchAndIndex, interval * 1000);
|
||||
runInterval(() => fetchAndIndex().catch(handleError), interval * 1000);
|
||||
}
|
||||
|
||||
run().catch(handleError);
|
||||
|
||||
Reference in New Issue
Block a user