]> git.donarmstrong.com Git - lilypond.git/commitdiff
Refine check-translation error message
authorJohn Mandereau <john.mandereau@gmail.com>
Sun, 19 Aug 2007 08:21:42 +0000 (10:21 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Sun, 19 Aug 2007 08:21:42 +0000 (10:21 +0200)
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 ()