Changeset 1185


Ignore:
Timestamp:
Dec 11, 2006, 2:32:12 AM (15 years ago)
Author:
livings124
Message:

ability to store warning message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/multitracker/libtransmission/tracker.c

    r1180 r1185  
    631631    if( ( bePeers = tr_bencDictFind( &beAll, "failure reason" ) ) )
    632632    {
    633         tr_err( "Tracker: %s", bePeers->val.s.s );
     633        tr_err( "Tracker: Error - %s", bePeers->val.s.s );
    634634        tor->error |= TR_ETRACKER;
    635635        snprintf( tor->trackerError, sizeof( tor->trackerError ),
     
    638638        failureAnnouncing( tc );
    639639        goto cleanup;
     640    }
     641    else if( ( bePeers = tr_bencDictFind( &beAll, "warning message" ) ) )
     642    {
     643        tr_err( "Tracker: Warning - %s", bePeers->val.s.s );
     644        snprintf( tor->trackerError, sizeof( tor->trackerError ),
     645                  "%s", bePeers->val.s.s );
     646    }
     647    else
     648    {
     649        tor->trackerError[0] = '\0';
    640650    }
    641651
Note: See TracChangeset for help on using the changeset viewer.