From 84dd36bae9cf4b807a77efd3241e5dcb98a9b301 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 20 Nov 2017 11:59:16 +0100 Subject: dashboard/app: fix error trimming --- dashboard/app/reporting_email.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit mrf-deployment