mirror of
https://github.com/golang/go.git
synced 2026-04-03 01:40:30 +09:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user