Skip to content

Commit 7926f05

Browse files
authored
Merge pull request #2962 from aGitForEveryone/logging_extract_metadata
Update extract-meta.js
2 parents bcd9bd1 + b54ee5a commit 7926f05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dash/extract-meta.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const isUnionLiteral = typeObj =>
8585

8686
function logError(error, filePath) {
8787
if (filePath) {
88-
process.stderr.write(`Error with path ${filePath}`);
88+
process.stderr.write(`Error with path ${filePath}\n`);
8989
}
9090
process.stderr.write(error + '\n');
9191
if (error instanceof Error) {
@@ -145,7 +145,7 @@ function parseJSX(filepath) {
145145
docstringWarning(doc);
146146
return doc;
147147
} catch (error) {
148-
logError(error);
148+
logError(error, filepath);
149149
}
150150
}
151151

0 commit comments

Comments
 (0)