diff options
author | Neil <nyamatongwe@gmail.com> | 2021-06-11 08:31:14 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-06-11 08:31:14 +1000 |
commit | 2faea32d55a3138da044f899ec88f937b02f483a (patch) | |
tree | e9df5cadf4af767fb98b3d54b6d90de0d968a871 | |
parent | 345baa6dc0b6d816f80daa195c51413805abbcae (diff) | |
download | scintilla-mirror-2faea32d55a3138da044f899ec88f937b02f483a.tar.gz |
Display warning if can't find line to update.
-rw-r--r-- | scripts/FileGenerator.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |