mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk) clean up the return value of tr_torrentParse()
This commit is contained in:
@@ -926,11 +926,11 @@ addTorrentImpl( struct tr_rpc_idle_data * data, tr_ctor * ctor )
|
||||
notify( data->session, TR_RPC_TORRENT_ADDED, tor );
|
||||
tr_bencFree( &fields );
|
||||
}
|
||||
else if( err == TR_EDUPLICATE )
|
||||
else if( err == TR_PARSE_DUPLICATE )
|
||||
{
|
||||
result = "duplicate torrent";
|
||||
}
|
||||
else if( err == TR_EINVALID )
|
||||
else if( err == TR_PARSE_ERR )
|
||||
{
|
||||
result = "invalid or corrupt torrent file";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user