antonycourtney / tad

A desktop application for viewing and analyzing tabular data
http://tadviewer.com
MIT License
3.18k stars 118 forks source link

Improve error report when opening weird files #265

Open squalou opened 6 months ago

squalou commented 6 months ago

Hi,

first thank you a lot for this tool, I've bee using it with a fairly big file without issue.

The other day I had to open a file that was badly encoded, easy to fix provided the error is displayed.

As of today, TAD doesn't say anything when it happens.

Error is hidden in console, here's what it looks like :

  errno: -1,
  code: 'DUCKDB_NODEJS_ERROR',
  errorType: 'Invalid Input'
} Error: Invalid Input Error: Error in file "/home/xxxx/123456.csv" at line 0: Invalid unicode (byte sequence mismatch) detected in CSV file. Parser options:
  file=/home/xxxx/123456.csv

Clearly the file is at fault and I would never ask for a support for it, all I would like is an error popup in such situations, that would be a great improvement.

Thx again !