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

chore(cli): output file name when error happen to handling a file #702

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

meowtec
Copy link
Contributor

@meowtec meowtec commented Mar 25, 2022

Summary

When I use svgr -d to convert directory and there is a broken SVG file, the command failed with output:

Error in parsing SVG: Unexpected close tag
Line: 0
Column: 1578
Char: >
(Use `node --trace-uncaught ...` to show where the exception was thrown)

Can not know which file is wrong.

Test plan

@vercel
Copy link

vercel bot commented Mar 25, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/gregberge/svgr/4TNj1gtZuBhktJmf4a8Csm46Nsff
✅ Preview: https://svgr-git-fork-meowtec-fix-cli-error-info-gregberge.vercel.app

@gregberge
Copy link
Owner

Thanks @meowtec !

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

Successfully merging this pull request may close these issues.

2 participants