Ignore:
Timestamp:
Jan 17, 2009, 3:08:20 PM (13 years ago)
Author:
charles
Message:

(trunk libT) check in some of the extra error logging messages developed last night while chasing down the problem denis found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r7720 r7735  
    204204    /* confirm the parent folder exists */
    205205    if( stat( folder, &sb ) || !S_ISDIR( sb.st_mode ) )
     206    {
     207        tr_err( _( "Couldn't create \"%1$s\": parent folder \"%2$s\" does not exist" ), torrentFile, folder );
    206208        return ENOENT;
     209    }
    207210
    208211    /* create subfolders, if any */
     
    212215        char * tmp = tr_dirname( filename );
    213216        const int err = tr_mkdirp( tmp, 0777 ) ? errno : 0;
    214         tr_free( tmp );
    215217        if( err ) {
     218            tr_err( _( "Couldn't create \"%1$s\": %2$s" ), tmp, tr_strerror( err ) );
     219            tr_free( tmp );
    216220            tr_free( filename );
    217221            return err;
    218222        }
     223        tr_free( tmp );
    219224    }
    220225
     
    237242    {
    238243        const int err = errno;
    239         tr_err( _( "Couldn't open \"%1$s\": %2$s" ), filename,
    240                tr_strerror( err ) );
     244        tr_err( _( "Couldn't open \"%1$s\": %2$s" ), filename, tr_strerror( err ) );
    241245        tr_free( filename );
    242246        return err;
Note: See TracChangeset for help on using the changeset viewer.