File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ var annotations_exporter = function (pl) {
16
16
try {
17
17
var oldAnnotations = fs . readFileSync ( path . resolve ( paths . source . annotations , 'annotations.js' ) , 'utf8' ) ;
18
18
} catch ( ex ) {
19
- console . log ( 'annotations.js file missing from ' + paths . source . annotations + '. This may be expected.' ) ;
19
+ if ( pl . config . debug ) {
20
+ console . log ( 'annotations.js file missing from ' + paths . source . annotations + '. This may be expected.' ) ;
21
+ }
20
22
return [ ] ;
21
23
}
22
24
@@ -43,7 +45,9 @@ var annotations_exporter = function (pl) {
43
45
try {
44
46
annotationsMD = fs . readFileSync ( path . resolve ( paths . source . annotations , 'annotations.md' ) , 'utf8' ) ;
45
47
} catch ( ex ) {
46
- console . log ( 'annotations.md file missing from ' + paths . source . annotations + '. This may be expected.' ) ;
48
+ if ( pl . config . debug ) {
49
+ console . log ( 'annotations.md file missing from ' + paths . source . annotations + '. This may be expected.' ) ;
50
+ }
47
51
return [ ] ;
48
52
}
49
53
You can’t perform that action at this time.
0 commit comments