From: John Mandereau Date: Sun, 19 Aug 2007 08:21:42 +0000 (+0200) Subject: Refine check-translation error message X-Git-Tag: release/2.11.32-1~2^2~5^2~15 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=310f018d20697a4999ad9de2376d4ccfdf54b259;p=lilypond.git Refine check-translation error message --- diff --git a/buildscripts/check_translation.py b/buildscripts/check_translation.py index 35ab59ee5f..9760133a8b 100644 --- a/buildscripts/check_translation.py +++ b/buildscripts/check_translation.py @@ -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: found' + sys.stderr.write ('error: ' + translated + \ + ": no 'GIT committish: ' 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 ()