Skip to content

Commit 1a888c7

Browse files
committed
-
1 parent 1ba1b36 commit 1a888c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/build/mdn-comments.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ async function getIndexMdContents(
9393
}
9494

9595
export async function generateDescription(): Promise<Record<string, string>> {
96+
const stats = await fs.stat(basePath);
97+
if (!stats.isDirectory()) {
98+
throw new Error("MDN submodule does not exist; try running `git submodule update --init`");
99+
}
96100
try {
97101
const folders = await getDirectories(basePath);
98102
if (folders.length > 0) {

0 commit comments

Comments
 (0)