Changeset 2156
- Timestamp:
- Jun 18, 2007, 8:56:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/metainfo.c
r2154 r2156 556 556 557 557 /* try to stat the file */ 558 errno = 0; 558 559 if( stat( path, &sb ) ) 559 560 { 560 tr_err( "Could not stat file (%s)", path);561 tr_err( "Couldn't stat file \"%s\" %s", path, strerror(errno) ); 561 562 return NULL; 562 563 } … … 578 579 if( !file ) 579 580 { 580 tr_err( "Could not open file (%s)", path);581 tr_err( "Couldn't open file \"%s\" %s", path, strerror(errno) ); 581 582 return NULL; 582 583 } … … 584 585 if( NULL == buf ) 585 586 { 586 tr_err( "Could not allocate memory (%"PRIu64" bytes)",587 tr_err( "Couldn't allocate memory (%"PRIu64" bytes)", 587 588 ( uint64_t )sb.st_size ); 588 589 } … … 590 591 if( fread( buf, sb.st_size, 1, file ) != 1 ) 591 592 { 592 tr_err( " Read error (%s)", path);593 tr_err( "Error reading \"%s\" %s", path, strerror(errno) ); 593 594 free( buf ); 594 595 fclose( file );
Note: See TracChangeset
for help on using the changeset viewer.