Skip to content

Commit cf4383f

Browse files
fix: add early return on file read error in build script (#474)
Signed-off-by: Harshit Kumar <10harshitkumar@gmail.com>
1 parent 179c770 commit cf4383f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

run.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ async function buildTemplates(preProcessor, postProcessor, selectedTemplate) {
245245
(err, data) => {
246246
if (err) {
247247
console.log(`Failed reading build/${versionToUpdate}.html with ${err}`);
248+
return;
248249
}
249250
const dom = new jsdom.JSDOM(data);
250251
const $ = jquery(dom.window);

0 commit comments

Comments
 (0)