@@ -15,7 +15,7 @@ import path from 'path';
1515import CLI from './utils/CLI' ;
1616import FileUtils from './utils/FileUtils' ;
1717import Git from './utils/Git' ;
18- import { log , error as logError , info as logInfo , success as logSuccess , warn as logWarn } from './utils/Logger' ;
18+ import { log , error as logError , errorDetail as logErrorDetail , info as logInfo , success as logSuccess , warn as logWarn } from './utils/Logger' ;
1919
2020// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-assignment
2121const ReactCompilerConfig = require ( '../config/babel/reactCompilerConfig' ) ;
@@ -131,7 +131,7 @@ function printErrors(filename: string, errors: CompilerError[]): void {
131131 }
132132 for ( const error of errors ) {
133133 const location = formatErrorLocation ( filename , error ) ;
134- logError ( ` ${ location } : ${ error . reason } `) ;
134+ logErrorDetail ( ` ${ location } : ${ error . reason } `) ;
135135 }
136136 if ( IS_CI ) {
137137 console . log ( '::endgroup::' ) ;
@@ -157,10 +157,10 @@ function checkFiles(inputs: string[], verbose: boolean): boolean {
157157
158158 switch ( result . status ) {
159159 case 'compiled' :
160- logSuccess ( `COMPILED ${ file } ` ) ;
160+ logSuccess ( `COMPILED ${ file } ` ) ;
161161 break ;
162162 case 'failed' :
163- logError ( `FAILED ${ file } ` ) ;
163+ logError ( `FAILED ${ file } ` ) ;
164164 printErrors ( file , result . errors ) ;
165165 hasFailure = true ;
166166 break ;
@@ -230,7 +230,7 @@ async function checkChangedFiles(remote: string, verbose: boolean): Promise<bool
230230
231231 if ( mainStatus === 'compiled' ) {
232232 failures . push ( { file : filename , reason : 'File compiled on main but fails to compile on this branch (regression)' , errors : result . errors } ) ;
233- logError ( `FAILED ${ filename } (regression: compiled on main)` ) ;
233+ logError ( `FAILED ${ filename } (regression: compiled on main)` ) ;
234234 printErrors ( filename , result . errors ) ;
235235 } else if ( verbose ) {
236236 logWarn ( `WARNING ${ filename } (fails to compile, but also failed on main)` ) ;
0 commit comments