From f4c312e2c0c3d2db53b9956129f208ff0e7d0905 Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Tue, 24 Jun 2014 03:49:15 +0900 Subject: [PATCH] Added command name to exception when it is missing '='. --- src/rpc/parse_commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/parse_commands.cc b/src/rpc/parse_commands.cc index 6e66405a8..b3015868d 100644 --- a/src/rpc/parse_commands.cc +++ b/src/rpc/parse_commands.cc @@ -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);