From ca63ae0a9630aee145fd9d7bca1cf50d3bc30b36 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 22 Oct 2015 10:22:58 -0700 Subject: [PATCH] csv: no need for newlines in exception strings --- plugins/input/csv/csv_datasource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/input/csv/csv_datasource.cpp b/plugins/input/csv/csv_datasource.cpp index dd1a3e1ac..72dc10a8c 100644 --- a/plugins/input/csv/csv_datasource.cpp +++ b/plugins/input/csv/csv_datasource.cpp @@ -230,7 +230,7 @@ void csv_datasource::parse_csv(T & stream) s << "CSV Plugin: expected a column header at line "; s << line_number << ", column " << index; s << " - ensure this row contains valid header fields: '"; - s << csv_line << "'\n"; + s << csv_line; throw mapnik::datasource_exception(s.str()); } else @@ -329,7 +329,7 @@ void csv_datasource::parse_csv(T & stream) std::ostringstream s; s << "CSV Plugin: # of columns(" << num_fields << ") > # of headers(" - << num_headers << ") parsed for row " << line_number << "\n"; + << num_headers << ") parsed for row " << line_number; throw mapnik::datasource_exception(s.str()); }