wireservice / csvkit

A suite of utilities for converting to and working with CSV, the king of tabular file formats.
https://csvkit.readthedocs.io
MIT License
6.03k stars 603 forks source link

Unhelpful error messages without traceback in csvsql #1260

Closed clach04 closed 3 months ago

clach04 commented 3 months ago

When an exception occurs, csvsql hides the traceback so there is no useful stacktrace or reference to start debugging from.

I don't understand the full code path, so I don't have a solution other than iteratively running in the debugger 😿

An example of this is with bug https://github.com/wireservice/csvkit/issues/1258 the failure gives no hints on where to start debugging. This problem is not present in https://github.com/wireservice/agate-sql (triggering failure in agate-sql outside of csvkit results in regular backtrace).

jpmckinney commented 3 months ago

You have to use the -v (--verbose) option

-v, --verbose Print detailed tracebacks when errors occur.

I'll review the other issue separately.