From dc01b4d651618ec1b764766d0b9eb61958f4ed68 Mon Sep 17 00:00:00 2001 From: Liam Barry Allan Date: Wed, 8 Dec 2021 15:35:53 -0500 Subject: [PATCH] Correct store lines even if file was not found --- src/parser.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/parser.js b/src/parser.js index ed12824f..65997149 100644 --- a/src/parser.js +++ b/src/parser.js @@ -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;