Skip to content

Commit 2fea50c

Browse files
author
Brian Muenzenmeyer
authored
Merge pull request #384 from pattern-lab/dev
alter check for error to attempt to be cross-platform
2 parents 8c93f73 + d38101e commit 2fea50c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/pattern_assembler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ var pattern_assembler = function () {
176176
}
177177
catch (err) {
178178
// do nothing when file not found
179-
if (err.errno !== -4058) {
179+
if (err.code !== 'ENOENT') {
180180
console.log('there was an error setting pattern keys after markdown parsing of the companion file for pattern ' + currentPattern.patternPartial);
181181
console.log(err);
182182
}

0 commit comments

Comments
 (0)