summaryrefslogtreecommitdiffstats
path: root/Source/cmList.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmList.cxx')
-rw-r--r--Source/cmList.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmList.cxx b/Source/cmList.cxx
index 39d138a..bf5a654 100644
--- a/Source/cmList.cxx
+++ b/Source/cmList.cxx
@@ -82,7 +82,9 @@ cmList& cmList::filter(cm::string_view pattern, FilterMode mode)
{
cmsys::RegularExpression regex(std::string{ pattern });
if (!regex.is_valid()) {
- throw std::invalid_argument(cmStrCat("invalid regex: ", pattern));
+ throw std::invalid_argument(
+ cmStrCat("sub-command FILTER, mode REGEX failed to compile regex \"",
+ pattern, "\"."));
}
auto it = std::remove_if(this->Values.begin(), this->Values.end(),