Output errors and line numbers