tools svg2tvg: ++exception handling.

skip to process if the input is invalid.
This commit is contained in:
Hermet Park 2021-11-02 14:38:09 +09:00
parent 3abf89a6ff
commit e4ab100fb2

View file

@ -146,6 +146,10 @@ int main(int argc, char **argv)
for (auto input : inputs) {
auto path = getpath(input);
if (!path) {
cout << "Invalid file or path name: \"" << input << "\"" << endl;
continue;
}
if (auto dir = opendir(path)) {
//load from directory