Go 1.24 made several changes about formatting messages: https://tip.golang.org/doc/go1.24#vet These changes make tests (and vet) craching. The fix is to use a string format and give error message as argument.