Added command name to exception when it is missing '='.

This commit is contained in:
Jari Sundell
2014-06-24 03:49:15 +09:00
parent 975d001ea7
commit f4c312e2c0
+1 -1
View File
@@ -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);