Fix error message along with golint