add file information to error messages.
adjust newlines for spec output.