mirror of
https://github.com/PorktoberRevolution/ReStocked
synced 2024-09-01 17:34:42 +00:00
Blacklist complains if url pattern does not match any files
Easier to debug stuff
This commit is contained in:
parent
91ec3c8341
commit
2a8287491b
Binary file not shown.
@ -57,10 +57,15 @@ namespace Restock
|
||||
string lineBeforeComment = line.Split(COMMENT_SEPARATOR, 2, StringSplitOptions.None)[0].Trim();
|
||||
if (lineBeforeComment == string.Empty) continue;
|
||||
|
||||
bool matchedFile = false;
|
||||
foreach (UrlDir.UrlFile urlFile in FindFilesForUrl(lineBeforeComment, dir))
|
||||
{
|
||||
yield return urlFile;
|
||||
matchedFile = true;
|
||||
}
|
||||
|
||||
if (!matchedFile)
|
||||
Debug.LogError($"[Restock] No files found matching url {lineBeforeComment}");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user