Skip to content

Commit 2028f1f

Browse files
committed
remove angry error message output when caught gracefully
1 parent 80aa5b7 commit 2028f1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/lib/annotation_exporter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var annotations_exporter = function (pl) {
1616
try {
1717
var oldAnnotations = fs.readFileSync(path.resolve(paths.source.annotations, 'annotations.js'), 'utf8');
1818
} catch (ex) {
19-
console.log(ex, 'annotations.js file missing from ' + paths.source.annotations + '. This may be expected.');
19+
console.log('annotations.js file missing from ' + paths.source.annotations + '. This may be expected.');
2020
}
2121

2222
//parse as JSON by removing the old wrapping js syntax. comments and the trailing semi-colon
@@ -41,7 +41,7 @@ var annotations_exporter = function (pl) {
4141
try {
4242
annotationsMD = fs.readFileSync(path.resolve(paths.source.annotations, 'annotations.md'), 'utf8');
4343
} catch (ex) {
44-
console.log(ex, 'annotations.md file missing from ' + paths.source.annotations + '. This may be expected.');
44+
console.log('annotations.md file missing from ' + paths.source.annotations + '. This may be expected.');
4545
}
4646

4747
//take the annotation snippets and split them on our custom delimiter

0 commit comments

Comments
 (0)