errorface icon indicating copy to clipboard operation
errorface copied to clipboard

Not handling "---" lines in errors

Open crosma opened this issue 14 years ago • 4 comments

When the mysql module throws an error (parse error in this exact case) there is a line that consists of "--------------------" which causes errorface to fail. I suppose you could just remove these lines.

I'd fix it myself but I don't really know coffeescript.

crosma avatar Dec 01 '12 08:12 crosma

Also this line does the same thing:

at C:\node\crosma\main\controllers\index.js:13:12

crosma avatar Dec 01 '12 08:12 crosma

Would you mind pasting in the full stack trace so I could create some unit tests for it. I don't have a windows set up and I want to make sure the unit test will match your environment.

jgable avatar Dec 01 '12 15:12 jgable

I'll try to remember to get that done next time I'm working on my project. Probably this weekend.

crosma avatar Dec 11 '12 04:12 crosma

I've added some unit tests around lines like '-------' and modified the stack parser to only load lines that it was able to parse a file name from.

I've republished to npm with these changes as version 0.0.22. Let me know if it still has any errors.

jgable avatar Dec 11 '12 21:12 jgable