@@ -631,7 +631,7 @@ export class DataSchemaCompiler {
631631 return files . map ( ( file , index ) => {
632632 errorsReport . inFile ( file ) ;
633633 if ( ! res [ index ] ) { // This should not happen in theory but just to be safe
634- errorsReport . error ( ` No transpilation result received for the file ${ file . fileName } .` ) ;
634+ errorsReport . error ( ' No transpilation result received for the file.' ) ;
635635 return undefined ;
636636 }
637637 errorsReport . addErrors ( res [ index ] . errors , file . fileName ) ;
@@ -658,7 +658,7 @@ export class DataSchemaCompiler {
658658 return files . map ( ( file , index ) => {
659659 errorsReport . inFile ( file ) ;
660660 if ( ! res [ index ] ) { // This should not happen in theory but just to be safe
661- errorsReport . error ( ` No transpilation result received for the file ${ file . fileName } .` ) ;
661+ errorsReport . error ( ' No transpilation result received for the file.' ) ;
662662 return undefined ;
663663 }
664664 errorsReport . addErrors ( res [ index ] . errors , file . fileName ) ;
@@ -737,7 +737,7 @@ export class DataSchemaCompiler {
737737 const err = e as SyntaxErrorInterface ;
738738 const line = file . content . split ( '\n' ) [ ( err . loc ?. start ?. line || 1 ) - 1 ] ;
739739 const spaces = Array ( err . loc ?. start . column ) . fill ( ' ' ) . join ( '' ) ;
740- errorsReport . error ( `Syntax error during ' ${ file . fileName } ' parsing: ${ err . message } :\n${ line } \n${ spaces } ^` ) ;
740+ errorsReport . error ( `Syntax error during parsing: ${ err . message } :\n${ line } \n${ spaces } ^` , file . fileName ) ;
741741 } else {
742742 errorsReport . error ( e ) ;
743743 }
0 commit comments