@@ -627,7 +627,7 @@ export class DataSchemaCompiler {
627
627
errorsReport . error ( `No transpilation result received for the file ${ file . fileName } .` ) ;
628
628
return undefined ;
629
629
}
630
- errorsReport . addErrors ( res [ index ] . errors ) ;
630
+ errorsReport . addErrors ( res [ index ] . errors , file . fileName ) ;
631
631
errorsReport . addWarnings ( res [ index ] . warnings as unknown as SyntaxErrorInterface [ ] ) ;
632
632
errorsReport . exitFile ( ) ;
633
633
@@ -654,7 +654,7 @@ export class DataSchemaCompiler {
654
654
errorsReport . error ( `No transpilation result received for the file ${ file . fileName } .` ) ;
655
655
return undefined ;
656
656
}
657
- errorsReport . addErrors ( res [ index ] . errors ) ;
657
+ errorsReport . addErrors ( res [ index ] . errors , file . fileName ) ;
658
658
errorsReport . addWarnings ( res [ index ] . warnings as unknown as SyntaxErrorInterface [ ] ) ;
659
659
errorsReport . exitFile ( ) ;
660
660
@@ -686,7 +686,7 @@ export class DataSchemaCompiler {
686
686
687
687
errorsReport . inFile ( file ) ;
688
688
const res = await transpileJs ( [ reqData ] ) ;
689
- errorsReport . addErrors ( res [ 0 ] . errors ) ;
689
+ errorsReport . addErrors ( res [ 0 ] . errors , file . fileName ) ;
690
690
errorsReport . addWarnings ( res [ 0 ] . warnings as unknown as SyntaxErrorInterface [ ] ) ;
691
691
errorsReport . exitFile ( ) ;
692
692
@@ -701,7 +701,7 @@ export class DataSchemaCompiler {
701
701
} ;
702
702
703
703
const res = await this . workerPool ! . exec ( 'transpileJs' , [ data ] ) ;
704
- errorsReport . addErrors ( res . errors ) ;
704
+ errorsReport . addErrors ( res . errors , file . fileName ) ;
705
705
errorsReport . addWarnings ( res . warnings ) ;
706
706
707
707
return { ...file , content : res . content } ;
@@ -761,7 +761,7 @@ export class DataSchemaCompiler {
761
761
762
762
errorsReport . inFile ( file ) ;
763
763
const res = await transpileYaml ( [ reqData ] ) ;
764
- errorsReport . addErrors ( res [ 0 ] . errors ) ;
764
+ errorsReport . addErrors ( res [ 0 ] . errors , file . fileName ) ;
765
765
errorsReport . addWarnings ( res [ 0 ] . warnings as unknown as SyntaxErrorInterface [ ] ) ;
766
766
errorsReport . exitFile ( ) ;
767
767
@@ -778,7 +778,7 @@ export class DataSchemaCompiler {
778
778
} ;
779
779
780
780
const res = await this . workerPool ! . exec ( 'transpileYaml' , [ data ] ) ;
781
- errorsReport . addErrors ( res . errors ) ;
781
+ errorsReport . addErrors ( res . errors , file . fileName ) ;
782
782
errorsReport . addWarnings ( res . warnings ) ;
783
783
784
784
this . compiledYamlCache . set ( cacheKey , res . content ) ;
0 commit comments