Commit d3b0b73118dcc7a814ec73f67210cf4164bebb8b

Authored by Dominik Steinberger
Committed by GitHub
1 parent c1666528

Print input when validation fails (#516)

Co-authored-by: Dominik Steinberger <open-source-libraries@steinberger.io>
Showing 1 changed file with 1 additions and 3 deletions
include/CLI/Validators.hpp
... ... @@ -746,9 +746,7 @@ class IsMember : public Validator {
746 746 }
747 747  
748 748 // If you reach this point, the result was not found
749   - std::string out(" not in ");
750   - out += detail::generate_set(detail::smart_deref(set));
751   - return out;
  749 + return input + " not in " + detail::generate_set(detail::smart_deref(set));
752 750 };
753 751 }
754 752  
... ...