mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 14:32:46 +08:00
Update littlecheck
Update littlecheck to dda885bed9d4a4c6ea1d9d66d0ca93fb54492b7c, which also displays the context view when the error is on the first line.
This commit is contained in:
parent
7f8c00c20a
commit
31e19db64a
|
@ -223,7 +223,11 @@ class TestFailure(object):
|
|||
]
|
||||
elif self.after:
|
||||
fields["additional_output"] = " ".join(self.after[:afterlines])
|
||||
fmtstrs += [" additional output:", " {BOLD}{additional_output}{RESET}"]
|
||||
fmtstrs += [
|
||||
" Context:",
|
||||
" {RED}{output_line}{RESET} <= does not match '{LIGHTBLUE}{input_line}{RESET}'",
|
||||
" {BOLD}{additional_output}{RESET}"
|
||||
]
|
||||
fmtstrs += [" when running command:", " {subbed_command}"]
|
||||
return "\n".join(fmtstrs).format(**fields)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user