Fix crash when cron seed file is missing

This commit is contained in:
Girish Ramakrishnan
2022-08-10 22:07:05 +02:00
parent 251c1f9757
commit b5cc7d90a9
2 changed files with 7 additions and 8 deletions

View File

@@ -140,7 +140,7 @@ async function runStartupTasks() {
// we used to run tasks in parallel but simultaneous nginx reloads was causing issues
for (let i = 0; i < tasks.length; i++) {
const [error] = await safe(tasks[i]());
if (error) debug(`Startup task at index ${i} failed: ${error.message}`);
if (error) debug(`Startup task at index ${i} failed: ${error.message} ${error.stack}`);
}
}