Improve error reporting when proto is to blame.