Skip to content
This repository was archived by the owner on Sep 27, 2020. It is now read-only.

Commit 4df69a5

Browse files
committed
fix: adjustment, error output
1 parent 14505da commit 4df69a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tripperware/expect_code.go

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ func (err *statusError) Error() string {
4242

4343
fmt.Fprintln(w, "\x1b[32mResponse: ------------------------------\x1b[0m")
4444
fmt.Fprint(w, err.text)
45+
if !strings.HasSuffix(strings.TrimRight(err.text, " \t"), "\n") {
46+
fmt.Fprintln(w, "")
47+
}
4548
fmt.Fprintln(w, "\x1b[32m----------------------------------------\x1b[0m")
4649

4750
return fmt.Sprintf(

0 commit comments

Comments
 (0)