Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to catch error #20

Closed
moshir opened this issue Aug 19, 2012 · 4 comments
Closed

How to catch error #20

moshir opened this issue Aug 19, 2012 · 4 comments

Comments

@moshir
Copy link

moshir commented Aug 19, 2012

Hi,

first of all, thanks for this excellent module.
Question : How error are supposed to be handled ?
The api seems to provide an 'error' event.
But even if you add an 'error' listener, there's a lot of throw new Error ("...") in the code base that makes error handling difficult.

@DominicBoettger
Copy link

Same problem here not able to catch the error....

[ERROR] Error
Error: separator expected after a closing quote; found ,
at CsvReader.parse (/~/node/project1/node_modules/ya-csv/lib/ya-csv.js:131:35)

@diversario
Copy link

Same here. Why is this error throws instead of being emitted?

@koles
Copy link
Owner

koles commented Sep 10, 2014

Can you please check version 0.9.4?

thanks

@koles koles closed this as completed Sep 10, 2014
@uncedric
Copy link

@koles I am using version 0.9.4 and I'm still getting that error, any idea how to handle it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants