Changeset 12494


Ignore:
Timestamp:
Jun 10, 2011, 5:34:16 AM (10 years ago)
Author:
jordan
Message:

(trunk libT) #4101 "RPC method blocklist-update is broken" -- add debugging error messages for cases where gzopen/gzread fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpcimpl.c

    r12419 r12494  
    11271127    struct tr_rpc_idle_data * data = user_data;
    11281128
     1129    *result = '\0';
     1130
    11291131    if( response_code != 200 )
    11301132    {
     
    11821184                    tr_free( buf );
    11831185                    gzclose( gzf );
     1186                } else {
     1187                    tr_snprintf( result, sizeof( result ), _( "Error opening \"%1$s\": %2$s" ), filename, tr_strerror( errno ) );
    11841188                }
    11851189                tr_close_file( fd );
    11861190            }
     1191
     1192            if( *result )
     1193                tr_err( "%s", result );
    11871194
    11881195            unlink( filename );
Note: See TracChangeset for help on using the changeset viewer.