diff --git a/src/bin/svg2tvg/svg2tvg.cpp b/src/bin/svg2tvg/svg2tvg.cpp index 4924aac0..578409e8 100644 --- a/src/bin/svg2tvg/svg2tvg.cpp +++ b/src/bin/svg2tvg/svg2tvg.cpp @@ -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