fix: rewrote the missing frontmatter message

This commit is contained in:
Randell Dawson
2018-11-20 18:34:48 -08:00
committed by mrugesh mohapatra
parent 3acba8cb61
commit 3f80effdbd

View File

@ -6,7 +6,7 @@ const frontmatterCheck = (fullPath, isTranslation, fileContent) => {
let errors = []; let errors = [];
if (!frontmatter || _.isEmpty(frontmatter) || !frontmatter.title) { if (!frontmatter || _.isEmpty(frontmatter) || !frontmatter.title) {
errors.push({ errors.push({
msg: `Missing \`title key\` frontmatter.`, msg: `Misplaced frontmatter or missing \`title key\` frontmatter.`,
fullPath fullPath
}); });
} }