Skip to content

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

Merged
gregberge merged 1 commit intogregberge:mainfrom
meowtec:fix/cli-error-info
Apr 14, 2022
Merged

chore(cli): output file name when error happen to handling a file#702
gregberge merged 1 commit intogregberge:mainfrom
meowtec:fix/cli-error-info

Conversation

@meowtec
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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