update documentation

This commit is contained in:
Manuel Barkhau 2019-02-22 10:40:31 +01:00
parent 98e97fa38a
commit cccd7052b8
2 changed files with 15 additions and 2 deletions

View file

@ -72,7 +72,7 @@ def rewrite_lines(
log.error(f"No match for pattern '{non_matched_pattern}'")
compiled_pattern = patterns._compile_pattern(non_matched_pattern)
log.error(f"Pattern compiles to regex '{compiled_pattern}'")
raise ValueError("Invalid pattern(s)", list(non_matched_patterns))
raise ValueError("Invalid pattern(s)")
else:
return new_lines