Skip to content

Commit

Permalink
middleware.Recoverer, stack formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Mar 24, 2020
1 parent d54e3e9 commit f185085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware/recoverer.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ func (s prettyStack) decorateLine(line string, useColor bool, num int) (string,
return s.decorateFuncCallLine(line, useColor, num)
} else {
if strings.HasPrefix(line, "\t") {
return strings.Replace(line, "\t", " ", 1), nil
return strings.Replace(line, "\t", " ", 1), nil
} else {
return fmt.Sprintf(" %s\n", line), nil
return fmt.Sprintf(" %s\n", line), nil
}
}
}
Expand Down

0 comments on commit f185085

Please sign in to comment.