diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-11-20 11:59:16 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-11-20 11:59:16 +0100 |
| commit | 84dd36bae9cf4b807a77efd3241e5dcb98a9b301 (patch) | |
| tree | 44bff8f646904ea5ef3868e532428f92944bdc65 | |
| parent | 2d24bbb2259bd5064ccbea7a46c30591660b1a97 (diff) | |
dashboard/app: fix error trimming
| -rw-r--r-- | dashboard/app/reporting_email.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/app/reporting_email.go b/dashboard/app/reporting_email.go index ff4bec167..cb22164a9 100644 --- a/dashboard/app/reporting_email.go +++ b/dashboard/app/reporting_email.go @@ -173,7 +173,7 @@ func emailReport(c context.Context, rep *dashapi.BugReport, templ string) error Name: "error.txt", Data: errorText, }) - errorText = errorText[:len(errorText)-maxInlineError] + errorText = errorText[len(errorText)-maxInlineError:] } from, err := email.AddAddrContext(fromAddr(c), rep.ID) if err != nil { |
