fix assert
improve messaging on torrent error