aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/FileGenerator.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-06-11 08:31:14 +1000
committerNeil <nyamatongwe@gmail.com>2021-06-11 08:31:14 +1000
commit2faea32d55a3138da044f899ec88f937b02f483a (patch)
treee9df5cadf4af767fb98b3d54b6d90de0d968a871 /scripts/FileGenerator.py
parent345baa6dc0b6d816f80daa195c51413805abbcae (diff)
downloadscintilla-mirror-2faea32d55a3138da044f899ec88f937b02f483a.tar.gz
Display warning if can't find line to update.
Diffstat (limited to 'scripts/FileGenerator.py')
-rw-r--r--scripts/FileGenerator.py2
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)