Minor message improvement

Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Attached patch changes "No recognized item" to actual english and tries to 
print a little of the line that caused the error.

-- 
pub  1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <[email protected]>
     Key fingerprint = 934E 31AA 80A7 723F 54F9  50ED 76AC EE01 FEA2 A3FE
aap-syntax.diff (text/x-diff, 510 B)
--- Process.py.orig	Wed Aug 13 19:16:12 2003
+++ Process.py	Wed Aug 13 19:15:27 2003
@@ -1045,7 +1045,8 @@
         #
         targets = getarg(fp, ":#")
         if fp.idx >= fp.line_len or fp.line[fp.idx] != ':':
-            recipe_error(fp.rpstack, _("No recognized item"))
+	    fp.idx = skip_white(fp.line,0)
+            recipe_error(fp.rpstack, _('Unrecognized item "%s"') % fp.line[fp.idx:fp.idx+15])
 
         if not toplevel:
             recipe_error(fp.rpstack, _("Dependency not allowed here"))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.