correctly report errors