Improved errors with multiple lines