mirror of
git://sourceware.org/git/lvm2.git
synced 2025-05-14 22:50:47 +03:00
Show string with invalid pattern
and start error message with capital letter.
This commit is contained in:
parent
9783e5ae7b
commit
8889fda53d
@ -1,5 +1,6 @@
|
||||
Version 2.02.64 -
|
||||
=================================
|
||||
Display invalid regex pattern for filter configuration in case of error.
|
||||
Remove no-longer-used arg_ptr_value.
|
||||
Fix -M and --type to use strings not pointers that change on config refresh.
|
||||
Fix lvconvert error message when existing mirrored LV is not found.
|
||||
|
@ -103,7 +103,7 @@ static int _build_matcher(struct rfilter *rf, struct config_value *val)
|
||||
*/
|
||||
for (v = val; v; v = v->next) {
|
||||
if (v->type != CFG_STRING) {
|
||||
log_error("filter patterns must be enclosed in quotes");
|
||||
log_error("Filter patterns must be enclosed in quotes.");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -128,7 +128,7 @@ static int _build_matcher(struct rfilter *rf, struct config_value *val)
|
||||
*/
|
||||
for (v = val, i = count - 1; v; v = v->next, i--)
|
||||
if (!_extract_pattern(scratch, v->v.str, regex, rf->accept, i)) {
|
||||
log_error("invalid filter pattern");
|
||||
log_error("Invalid filter pattern \"%s\".", v->v.str);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user