1
0
mirror of synced 2025-12-21 10:57:10 -05:00

warn about early-access page creations that failed (#32352)

This commit is contained in:
Peter Bengtsson
2022-11-04 19:36:05 +01:00
committed by GitHub
parent 3b15bc69e8
commit 43a959b8fa

View File

@@ -42,7 +42,14 @@ export default async function createTree(originalPath, langObj) {
if (!page) {
// 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.
if (langObj.code !== 'en') return