dashboard/app: fix error trimming

This commit is contained in:
Dmitry Vyukov 2017-11-20 11:59:16 +01:00
parent 2d24bbb225
commit 84dd36bae9

View File

@ -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 {