diff options
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -209,8 +209,14 @@ static void print_worker_output( const char *worker_name ) } if( strlen( data ) > 0 && data[len-1] == '\r' ) { data[len-1] = '\0'; + len--; } - print_answer( data ); + if( len > 0 ) { + print_message( "worker %s:", worker_name ); + print_answer( data ); + } + } else if( ret == ERRNOLG ) { + // ignore empty result, worker has no output currently } else { print_error( "ERROR: HTTP error %d", ret ); } |