fixed error strings to contain newline at the end