Error string:Regular expression updates (#23426)

This commit is contained in:
Senthil Kumar Ganesan 2017-04-13 06:12:32 -07:00 committed by John R Barker
parent e7bb508ad6
commit c86feeaed9

View file

@ -36,11 +36,13 @@ class TerminalModule(TerminalBase):
] ]
terminal_stderr_re = [ terminal_stderr_re = [
re.compile(r"% ?Error: (?:(?!\bdoes not exist\b)(?!\balready exists\b)(?!\bHost not found\b)(?!\bnot active\b).)*$"), re.compile(r"% ?Error"),
re.compile(r"% ?Bad secret"), re.compile(r"% ?Bad secret"),
re.compile(r"Syntax error:"),
re.compile(r"invalid input", re.I), re.compile(r"invalid input", re.I),
re.compile(r"(?:incomplete|ambiguous) command", re.I), re.compile(r"(?:incomplete|ambiguous) command", re.I),
re.compile(r"connection timed out", re.I), re.compile(r"connection timed out", re.I),
re.compile(r"[^\r\n]+ not found", re.I),
re.compile(r"'[^']' +returned error code: ?\d+"), re.compile(r"'[^']' +returned error code: ?\d+"),
] ]