Skip to content

Commit

Permalink
chore: show full watch error
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Dec 13, 2024
1 parent a24012b commit e579421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ async function syncWithWorkingDirectory(event, from) {
if (isWatch) {
chokidar.watch(srcDir, { ignoreInitial: true }).on('all', (event, path) => {
generateDocsForLanguages().catch((error) => {
console.error(`Error auto syncing docs (generating): ${error}`);
console.error(`Error auto syncing docs (generating)`, error);
})
});
chokidar.watch(path.join(__dirname, '..', lang2Folder[watchProject])).on('all', (event, path) => {
syncWithWorkingDirectory(event, path).catch(error => {
console.error(`Error auto syncing docs (mirroring): ${error}`);
console.error(`Error auto syncing docs (mirroring)`, error);
})
});
await generateDocsForLanguages();
Expand Down

0 comments on commit e579421

Please sign in to comment.