Skip to content

Commit d3b0b73

Browse files
Dominik SteinbergerDominik Steinberger
andauthored
Print input when validation fails (#516)
Co-authored-by: Dominik Steinberger <[email protected]>
1 parent c166652 commit d3b0b73

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/CLI/Validators.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,9 +746,7 @@ class IsMember : public Validator {
746746
}
747747

748748
// 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));
752750
};
753751
}
754752

0 commit comments

Comments
 (0)