]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/check_translation.py
Refine check-translation error message
[lilypond.git] / buildscripts / check_translation.py
index 35ab59ee5f0810c603f2f04f30b91aa23a8e29ea..9760133a8bfd9e7411472d7efcf51592a7aaecb6 100644 (file)
@@ -23,7 +23,11 @@ def check_file (original, translated):
     s = open (translated).read ()
     m = REVISION_RE.match (s)
     if not m:
-        raise translated + ': no GIT committish: <hash> found'
+        sys.stderr.write ('error: ' + translated + \
+                          ": no 'GIT committish: <hash>' found.\nPlease check " + \
+                          'the whole file against the original in English, then ' + \
+                          'fill in HEAD committish in the header.\n')
+        sys.exit (1)
     revision = m.group (1)
 
     c = CVS_DIFF % vars ()