Closed gl-yziquel closed 1 year ago
Suggested PR: https://github.com/wireservice/csvkit/pull/1211
However, it does not exit with an error code.
It does for me?
$ csvlook examples/bad.csv
ValueError: Row 0 has 4 values, but Table only has 3 columns.
$ echo $?
1
Currently, when a csv file has a mismatched header with a different number of values from the number of columns in the csv table, the program fails with
However, it does not exit with an error code. As I am scripting this from a command runner, I'd appreciate a nonzero error code being returned to the shell.