-
Notifications
You must be signed in to change notification settings - Fork 166
Return error #320
Comments
I tried |
|
I also had this issue... while attempting to use the sync API in a native ES Modules package. Made my own Async API by promising the callback one. Similar to the csvtojson package's Async API.
It's convenient and errors bubble up correctly. The whole point of async / await is to make async code look synchronous. That said, not bubbling errors with the Sync API is definitely a bug. Here's a sandbox with various scenarios involving CSV and ESM |
@rayfoss what you are proposing is not relevant to this issue. Worst, the code is not good. Just use |
Hello.
I'm trying to use
parse
` const parse = require('csv-parse/lib/sync')
In general, it works fine. But if my file contains an issue with quotes I cannot handle this error
Invalid Opening Quote: a quote is found inside a field at line 2
Is there a way how to handle this error? Need to show it in the custom
The text was updated successfully, but these errors were encountered: