jzbrooks / vgo

vector graphic optimization
MIT License
43 stars 2 forks source link

Ignore files with unknown elements #16

Closed jzbrooks closed 4 years ago

jzbrooks commented 4 years ago

Since someone might be processing a directory of xml files which may not all be vector drawables, vgo should ignore files it doesn't know how to handle without crashing, perhaps write a message.

Exception in thread "main" java.lang.UnsupportedOperationException: No supported formats were found in the document.
roots:[layer-list]
jzbrooks commented 4 years ago

Fixed by https://github.com/jzbrooks/vgo/commit/a8940189dd10b1b47b2aac04468001dce2935a70 for VectorDrawables