Blacklist complains if url pattern does not match any files

Easier to debug stuff
pull/478/head
blowfish 5 years ago
parent 91ec3c8341
commit 2a8287491b

@ -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…
Cancel
Save