mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-06 06:09:22 +00:00
* Improved error handling for settings. LibTorrent now consistently
throws torrent::input_error and rtorrent catches those and prints good
error messages.
* torrent::set_{bind,local}_address now accepts dns addresses.
* Fixed bug that caused multiple instances of the setting
up/download_rate to change the relative rate, rather than constant.
* Minor change to the way PCB decides to not request more pieces.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@601 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include <stdexcept>
|
||||
#include <sigc++/bind.h>
|
||||
#include <sigc++/hide.h>
|
||||
#include <torrent/exceptions.h>
|
||||
|
||||
#include "option_handler.h"
|
||||
|
||||
@@ -78,7 +79,7 @@ OptionHandler::process(const std::string& key, const std::string& arg) const {
|
||||
const_iterator itr = find(key);
|
||||
|
||||
if (itr == end())
|
||||
throw std::runtime_error("Could not find option key matching \"" + key + "\"");
|
||||
throw torrent::input_error("Could not find option key \"" + key + "\".");
|
||||
|
||||
itr->second->process(key, arg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user