diff options
Diffstat (limited to 'it_pipe.class')
-rw-r--r-- | it_pipe.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_pipe.class b/it_pipe.class index 1c890a8..a2588fe 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -216,7 +216,7 @@ function csv($p = []) if (($cols = str_getcsv($line, $splitchar, '"')) && count($schema) == count($cols)) $records[] = (object)array_combine($schema, $cols); else - return (array)it::error((array)$p['it_error'] + ['title' => "schema mismatch: " . count($schema) . " vs " . count($cols), 'body' => [$schema, $line]]); + return (array)it::error((array)$p['it_error'] + ['title' => "csv column count mismatch: " . count($schema) . " in header vs " . count($cols) . " in row", 'body' => [$schema, $cols]]); } setlocale(LC_CTYPE, $oldlocale); |