bovee / entab

* -> TSV
MIT License
21 stars 5 forks source link

"Unknown doesn't have a parser" is not a very helpful error message #43

Closed bovee closed 6 days ago

bovee commented 1 year ago

We should maybe add more common magic sequences to filetype.rs?

Also for really unknown files, we should maybe capture the first 8 (?) bytes (change [Unknown](https://github.com/bovee/entab/blob/f4e0f3cb7ca4383145cd3575a0e80962d07dcdee/entab/src/filetype.rs#L79) to Unknown([u8; 8])?) and then rewrite the error message appropriately.