File tree 1 file changed +17
-10
lines changed
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) {
197
197
}
198
198
status_bar . finish ( ) ;
199
199
200
- if ( debug === false ) {
200
+ if ( debug ) {
201
201
results . successful . sort ( by_filename ) ;
202
202
results . successful . forEach ( r => {
203
203
console . log ( r . output ) ;
204
204
} ) ;
205
205
}
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
+ }
215
222
216
223
if ( failed ) {
217
224
process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments