(trunk) clean up the return value of tr_torrentParse()

This commit is contained in:
Charles Kerr
2009-08-05 01:59:16 +00:00
parent 360f5c49ae
commit 1c3b53244d
10 changed files with 70 additions and 72 deletions

View File

@@ -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";
}