This commit is contained in:
parent
296787d242
commit
22f1b7a476
@ -71,14 +71,9 @@ export const CreatedModifiedDate: QuartzTransformerPlugin<Partial<Options>> = (u
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
modified ||= await repo.getFileLatestModifiedDateAsync(file.data.filePath!)
|
modified ||= await repo.getFileLatestModifiedDateAsync(file.data.filePath!);
|
||||||
} catch {
|
} catch (error) {
|
||||||
console.log(
|
console.log(chalk.red(`Error retrieving latest modified date for ${file.data.filePath}: ${error.message}`));
|
||||||
chalk.yellow(
|
|
||||||
`\nWarning: ${file.data
|
|
||||||
.filePath!} isn't yet tracked by git, last modification date is not available for this file`,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user