warn about early-access page creations that failed (#32352)
This commit is contained in:
@@ -42,7 +42,14 @@ export default async function createTree(originalPath, langObj) {
|
|||||||
|
|
||||||
if (!page) {
|
if (!page) {
|
||||||
// Do not throw an error if Early Access is not available.
|
// Do not throw an error if Early Access is not available.
|
||||||
if (relativePath.startsWith('early-access')) return
|
if (relativePath.startsWith('early-access')) {
|
||||||
|
if (langObj.code === 'en') {
|
||||||
|
console.warn(
|
||||||
|
`${relativePath} could not be turned into a Page, but is ignore because it's early-access`
|
||||||
|
)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
// Do not throw an error if translated page is not available.
|
// Do not throw an error if translated page is not available.
|
||||||
if (langObj.code !== 'en') return
|
if (langObj.code !== 'en') return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user