diff --git a/.operations/gen-html.js b/.operations/gen-html.js
index 08914655..6a4abd10 100644
--- a/.operations/gen-html.js
+++ b/.operations/gen-html.js
@@ -63,7 +63,13 @@ readDirPromise('./')
async function processMDFile(filePath = '/', templateHTML = null) {
- const mdSrc = await readFilePromise(filePath);
+ let mdSrc;
+ try {
+ mdSrc = await readFilePromise(filePath);
+ } catch (err) {
+ console.warn(`Failed to read file [${filePath}], does it exist?`);
+ return '';
+ }
const generatedHTML = converter.makeHtml(mdSrc);
let nexHTML = generatedHTML;
if (templateHTML) {