From 3e9c4f79e68e27dd5d7fe2a2613b4f4b4feedc4d Mon Sep 17 00:00:00 2001 From: Joel Drapper Date: Sun, 18 Feb 2024 16:07:22 +0000 Subject: [PATCH] Update csv.rb --- lib/phlex/csv.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/phlex/csv.rb b/lib/phlex/csv.rb index 94f91264..8f2c0aa6 100644 --- a/lib/phlex/csv.rb +++ b/lib/phlex/csv.rb @@ -43,8 +43,8 @@ def filename def column(header = nil, value) if @_first @_headers << header - else - raise unless header == @_headers[@_current_column_index] + elsif header != @_headers[@_current_column_index] + raise "Inconsistent header." end @_current_row << value