Skip to content

Commit

Permalink
refactor: strip ANSI characters from JSON errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Nov 21, 2020
1 parent 0cedc2f commit 9bafc41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func ShowError(err error, style string, out io.Writer) {
Code string
Text string
}{
Text: err.Error(),
Text: core.StripANSI(err.Error()),
Code: "E100",
}
} else {
Expand Down

0 comments on commit 9bafc41

Please sign in to comment.