Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Fix error message in as_vector method (See rakshasa#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
chros authored and chros committed Mar 3, 2018
1 parent 5b92180 commit 848200c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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.");
}

}
Expand Down

0 comments on commit 848200c

Please sign in to comment.