From 2faea32d55a3138da044f899ec88f937b02f483a Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 11 Jun 2021 08:31:14 +1000 Subject: Display warning if can't find line to update. --- scripts/FileGenerator.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/FileGenerator.py') diff --git a/scripts/FileGenerator.py b/scripts/FileGenerator.py index b4fe02653..aaa0a8ac9 100644 --- a/scripts/FileGenerator.py +++ b/scripts/FileGenerator.py @@ -167,6 +167,8 @@ def UpdateLineInFile(path, linePrefix, lineReplace): updated = True else: lines.append(l) + if not updated: + print(f"{path}:0: Can't find '{linePrefix}'") contents = lineEnd.join(lines) + lineEnd UpdateFile(path, contents) -- cgit v1.2.3