Fix error output to be consistent