From 310f018d20697a4999ad9de2376d4ccfdf54b259 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Sun, 19 Aug 2007 10:21:42 +0200 Subject: [PATCH] Refine check-translation error message --- buildscripts/check_translation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 () -- 2.39.2