amend panic message after decodeHash got renamed

pull/831/head
Daniel Martí 3 months ago committed by Paul Scheduikat
parent e8fe80d627
commit 9cb4a6f0c8

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

Loading…
Cancel
Save