Skip to content

Commit

Permalink
amend panic message after decodeHash got renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan authored and lu4p committed Feb 8, 2024
1 parent e8fe80d commit 9cb4a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func decodeBuildIDHash(str string) []byte {
panic(fmt.Sprintf("invalid hash %q: %v", str, err))
}
if len(h) != buildIDHashLength {
panic(fmt.Sprintf("decodeHash expects to result in a hash of length %d, got %d", buildIDHashLength, len(h)))
panic(fmt.Sprintf("decodeBuildIDHash expects to result in a hash of length %d, got %d", buildIDHashLength, len(h)))
}
return h
}
Expand Down

0 comments on commit 9cb4a6f

Please sign in to comment.