From 6c11a1dbb065adc179e280dbf77b0b65eedc6b9c Mon Sep 17 00:00:00 2001 From: chros Date: Sat, 3 Mar 2018 09:08:28 +0000 Subject: [PATCH] Fix error message in as_vector method (See #14) --- src/command_ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command_ui.cc b/src/command_ui.cc index d0646bd1..5cd1e4af 100644 --- a/src/command_ui.cc +++ b/src/command_ui.cc @@ -523,7 +523,7 @@ apply_elapsed_greater(const torrent::Object::list_type& args) { inline std::vector as_vector(const torrent::Object::list_type& args) { if (args.size() == 0) - throw torrent::input_error("Wrong argument count in as_list."); + throw torrent::input_error("Wrong argument count in as_vector."); std::vector result; @@ -537,7 +537,7 @@ as_vector(const torrent::Object::list_type& args) { std::vector subResult = as_vector(itr->as_list()); result.insert(result.end(), subResult.begin(), subResult.end()); } else { - throw torrent::input_error("Wrong type supplied to as_list."); + throw torrent::input_error("Wrong type supplied to as_vector."); } }