Fix error message in as_vector method (See #14)

This commit is contained in:
chros
2018-03-03 09:08:28 +00:00
parent 13676f06e5
commit 6c11a1dbb0
+2 -2
View File
@@ -523,7 +523,7 @@ apply_elapsed_greater(const torrent::Object::list_type& args) {
inline std::vector<int64_t>
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<int64_t> result;
@@ -537,7 +537,7 @@ as_vector(const torrent::Object::list_type& args) {
std::vector<int64_t> 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.");
}
}