mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 03:32:29 +00:00
Added command name to exception when it is missing '='.
This commit is contained in:
@@ -142,7 +142,7 @@ parse_command(target_type target, const char* first, const char* last) {
|
||||
first = std::find_if(first, last, std::not1(command_map_is_space()));
|
||||
|
||||
if (first == last || *first != '=')
|
||||
throw torrent::input_error("Could not find '='.");
|
||||
throw torrent::input_error("Could not find '=' in command '" + std::string(key) + "'.");
|
||||
|
||||
torrent::Object args;
|
||||
first = parse_whole_list(first + 1, last, &args, &parse_is_delim_command);
|
||||
|
||||
Reference in New Issue
Block a user