Skip to content

Commit

Permalink
Make limit argument mandatory in dump_dir_task
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloop committed Sep 25, 2020
1 parent 577e074 commit bed090c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tasks/internal/dump_dir_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

dump_dir_task::dump_dir_task(std::size_t id, std::shared_ptr<task_metadata> task_meta) : task_base(id, task_meta)
{
if (task_meta->cmd_args.size() < 2) {
throw task_exception("Wrong number of arguments. Required: 2 (1 optional), Actual: " +
if (task_meta->cmd_args.size() < 3) {
throw task_exception("Wrong number of arguments. Required: 3 (1+ optional), Actual: " +
std::to_string(task_meta_->cmd_args.size()));
}
}
Expand Down

0 comments on commit bed090c

Please sign in to comment.