Solved line reporting in error messages