From 6cb176ada3d411cdb8a9ffb3b9ed956c436f9810 Mon Sep 17 00:00:00 2001 From: chros Date: Tue, 7 Mar 2017 13:12:18 +0000 Subject: [PATCH] Add more info to throw message in math commands (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 bbb07a4d..a558de64 100644 --- a/src/command_ui.cc +++ b/src/command_ui.cc @@ -522,7 +522,7 @@ apply_elapsed_greater(const torrent::Object::list_type& args) { int64_t apply_math_basic(const std::function op, const torrent::Object::list_type& args) { if (args.size() == 0) - throw torrent::input_error("Wrong argument count."); + throw torrent::input_error("Wrong argument count in apply_math_basic."); int64_t val = 0; @@ -546,7 +546,7 @@ apply_math_basic(const std::function op, const torrent int64_t apply_arith_basic(const std::function op, const torrent::Object::list_type& args) { if (args.size() == 0) - throw torrent::input_error("Wrong argument count."); + throw torrent::input_error("Wrong argument count in apply_arith_basic."); int64_t val = 0;