print errors on the line they appear