Make error values expected type (error)