Add line numbers and errors