File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -197,21 +197,28 @@ async function main(argv) {
197197 }
198198 status_bar . finish ( ) ;
199199
200- if ( debug === false ) {
200+ if ( debug ) {
201201 results . successful . sort ( by_filename ) ;
202202 results . successful . forEach ( r => {
203203 console . log ( r . output ) ;
204204 } ) ;
205205 }
206- results . failed . sort ( by_filename ) ;
207- results . failed . forEach ( r => {
208- console . log ( r . output ) ;
209- } ) ;
210- // print run errors on the bottom so developers see them better
211- results . errored . sort ( by_filename ) ;
212- results . errored . forEach ( r => {
213- console . error ( r . output ) ;
214- } ) ;
206+
207+ if ( results . failed . length > 0 ) {
208+ console . log ( "" ) ;
209+ results . failed . sort ( by_filename ) ;
210+ results . failed . forEach ( r => {
211+ console . log ( r . output ) ;
212+ } ) ;
213+ }
214+ if ( results . errored . length > 0 ) {
215+ console . log ( os . EOL ) ;
216+ // print run errors on the bottom so developers see them better
217+ results . errored . sort ( by_filename ) ;
218+ results . errored . forEach ( r => {
219+ console . error ( r . output ) ;
220+ } ) ;
221+ }
215222
216223 if ( failed ) {
217224 process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments