diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-07-03 13:18:40 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-07-03 13:18:40 +0200 |
| commit | 1438a6de8130467a2fcde187ba80b8a616f8daa0 (patch) | |
| tree | 99c0a975b095da88a4d70bc44de9ffab0fb1746c /pkg/git/git.go | |
| parent | eb1cda04f372c32e5e0765783fad09429138408c (diff) | |
pkg/report: strip panic message from reports
If panic_on_warn set, then we frequently have 2 stacks:
one for the actual report (or maybe even more than one),
and then one for panic caused by panic_on_warn. This makes
reports unnecessary long and the panic (current) stack
is always present in the actual report. So we strip the
panic message. However, we check that we have enough lines
before the panic, because sometimes we have, for example,
a single WARNING line without a stack and then the panic
with the stack.
Diffstat (limited to 'pkg/git/git.go')
0 files changed, 0 insertions, 0 deletions
