Skip to content

Commit

Permalink
CommandTextualGeneric
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Oct 29, 2024
1 parent 7e1eba3 commit b6eb2e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moler/cmd/commandtextualgeneric.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __init__(
)
self.debug_data_received = False # Set True to log as hex all data received by command in data_received
self.re_fail = (
None # Regex to failure the command if it occurrs in the command output
None # Regex to failure the command if it occurs in the command output
)

if not self._newline_chars:
Expand Down Expand Up @@ -645,7 +645,7 @@ def failure_indiction(self, line: str, is_full_line: bool) -> None:
if self.is_failure_indication(line=line, is_full_line=is_full_line):
if self._is_failure_exception(line=line, is_full_line=is_full_line) is False:
self.set_exception(
CommandFailure(self, f"command failed in line '{line}'")
CommandFailure(self, f"command failed in the command output line '{line}'.")
)

def _is_failure_exception(self, line: str, is_full_line: bool) -> bool:
Expand Down

0 comments on commit b6eb2e4

Please sign in to comment.