Do not terminate if no matching file was found for a wildcard
This commit is contained in:
parent
8458be2f70
commit
d11eb1a63d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user