Skip to content

Commit

Permalink
Correct store lines even if file was not found
Browse files Browse the repository at this point in the history
  • Loading branch information
worksofliam committed Dec 8, 2021
1 parent 0601046 commit dc01b4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,15 @@ module.exports = class Parser {
lines = content.replace(new RegExp(`\\\r`, `g`), ``).split(`\n`);
this.setCopybook(finishedPath, lines);
} else {
lines = [];
lines = [`// NOT FOUND: ${getPath}`];
this.setCopybook(finishedPath, lines);
}
}
break;
}
} catch (e) {
lines = [];
lines = [`// ERROR: ${getPath}`];
this.setCopybook(finishedPath, lines);
}

return lines;
Expand Down

0 comments on commit dc01b4d

Please sign in to comment.