1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

fold some error messages together into common strings

This commit is contained in:
Charles Kerr 2008-03-04 02:13:53 +00:00
parent 84a8592d1d
commit eb18810b3e
2 changed files with 7 additions and 7 deletions

View file

@ -472,7 +472,7 @@ static int getannounce( tr_info * inf, tr_benc * meta )
/* did we use any of the tiers? */
if( 0 == inf->trackerTiers )
{
tr_inf( _( "No valid entries in \"announce-list\"" ) );
tr_inf( _( "Incomplete benc entry \"%s\"" ), "announce-list" );
free( inf->trackerList );
inf->trackerList = NULL;
}
@ -492,7 +492,7 @@ static int getannounce( tr_info * inf, tr_benc * meta )
val = tr_bencDictFind( meta, "announce" );
if( NULL == val || TYPE_STR != val->type )
{
tr_err( _( "No \"announce\" entry" ) );
tr_err( _( "Missing benc entry \"%s\"" ), "announce" );
return TR_EINVALID;
}

View file

@ -527,15 +527,15 @@ tr_errorString( int code )
return _( "Assert error" );
case TR_ERROR_IO_PARENT:
return _( "Download folder does not exist" );
return _( "Download folder doesn't exist" );
case TR_ERROR_IO_PERMISSIONS:
return _( "Insufficient permissions" );
return tr_strerror( EACCES );
case TR_ERROR_IO_SPACE:
return _( "Insufficient free space" );
return tr_strerror( ENOSPC );
case TR_ERROR_IO_FILE_TOO_BIG:
return _( "File too large" );
return tr_strerror( EFBIG );
case TR_ERROR_IO_OPEN_FILES:
return _( "Too many open files" );
return tr_strerror( EMFILE );
case TR_ERROR_IO_DUP_DOWNLOAD:
return _( "Already active transfer with same name and download folder" );
case TR_ERROR_IO_OTHER: