report errors correctly