internal/profile: fix error message casing for function ID not found

Go convention: error messages should not be capitalized

Change-Id: I021f54791b7c12ffffa7106532a33cd0ee2e9377
GitHub-Last-Rev: dfa6e0ff52
GitHub-Pull-Request: golang/go#77013
Reviewed-on: https://go-review.googlesource.com/c/go/+/732900
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
This commit is contained in:
jjpinto
2025-12-27 14:26:09 +00:00
committed by Gopher Robot
parent 0bd25dc875
commit 370513491a

View File

@@ -232,7 +232,7 @@ func (p *Profile) postDecode() error {
if id := ln.functionIDX; id != 0 {
l.Line[i].Function = functions[id]
if l.Line[i].Function == nil {
return fmt.Errorf("Function ID %d not found", id)
return fmt.Errorf("function ID %d not found", id)
}
l.Line[i].functionIDX = 0
}