Do not terminate if no matching file was found for a wildcard

This commit is contained in:
Peter Vingelmann 2016-09-14 20:43:41 +02:00
parent 8458be2f70
commit d11eb1a63d

View File

@ -1450,7 +1450,9 @@ void ASConsole::getFilePaths(string& filePath)
fprintf(stderr, _("No file to process %s\n"), filePath.c_str()); fprintf(stderr, _("No file to process %s\n"), filePath.c_str());
if (hasWildcard && !isRecursive) if (hasWildcard && !isRecursive)
fprintf(stderr, "%s\n", _("Did you intend to use --recursive")); fprintf(stderr, "%s\n", _("Did you intend to use --recursive"));
error(); // Do not terminate if no match was found for this wildcard
if (!hasWildcard)
error();
} }
if (hasWildcard) if (hasWildcard)