summaryrefslogtreecommitdiff
path: root/it_pipe.class
diff options
context:
space:
mode:
authorUrban Müller2020-08-21 16:07:00 +0200
committerUrban Müller2020-08-21 16:07:00 +0200
commit110004fb47cdff77cc3aeb35c80279a27fdfa7d0 (patch)
tree953a440ba0dae649c63eace3870e8e2f7ad45cf1 /it_pipe.class
parentcc48b1fb76da4258a5e697eaf2ac37c3d10ef44e (diff)
downloaditools-110004fb47cdff77cc3aeb35c80279a27fdfa7d0.tar.gz
itools-110004fb47cdff77cc3aeb35c80279a27fdfa7d0.tar.bz2
itools-110004fb47cdff77cc3aeb35c80279a27fdfa7d0.zip
more verbose err msg
Diffstat (limited to 'it_pipe.class')
-rw-r--r--it_pipe.class2
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);