Skip to content

Commit f703479

Browse files
committed
Update create-test.js
Added a bit more help for when you screw up the pattern in the example file.
1 parent 47d4bff commit f703479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/create-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var rawCode = shelljs.cat(codeFilename),
6969
// pop off first code, it will be an empty string
7070
code.shift();
7171

72-
if (sections.length !== code.length) {
72+
if (!sections || sections.length !== code.length) {
7373
console.error("Missing a /*!espree-section: name*/ in the code file.");
7474
process.exit(1);
7575
}

0 commit comments

Comments
 (0)