mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
tools svg2tvg: ++exception handling.
skip to process if the input is invalid.
This commit is contained in:
parent
3abf89a6ff
commit
e4ab100fb2
1 changed files with 4 additions and 0 deletions
|
@ -146,6 +146,10 @@ int main(int argc, char **argv)
|
||||||
for (auto input : inputs) {
|
for (auto input : inputs) {
|
||||||
|
|
||||||
auto path = getpath(input);
|
auto path = getpath(input);
|
||||||
|
if (!path) {
|
||||||
|
cout << "Invalid file or path name: \"" << input << "\"" << endl;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (auto dir = opendir(path)) {
|
if (auto dir = opendir(path)) {
|
||||||
//load from directory
|
//load from directory
|
||||||
|
|
Loading…
Add table
Reference in a new issue