]> git.wh0rd.org Git - nano.git/commitdiff
error message improvements
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 26 May 2006 17:06:05 +0000 (17:06 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 26 May 2006 17:06:05 +0000 (17:06 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3577 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/rcfile.c

index bebf2b99468de153575fa697f5f0ef7078499e56..d9b49f4a1d6b5618f48dbe03d626ee627ca864e2 100644 (file)
@@ -669,8 +669,8 @@ void parse_rcfile(FILE *rcstream
                parse_include(ptr);
        } else if (strcasecmp(keyword, "syntax") == 0) {
            if (endsyntax != NULL && endcolor == NULL)
-               rcfile_error(
-                       N_("Previous syntax has no color commands"));
+               rcfile_error(N_("Syntax %s has no color commands"),
+                       endsyntax->desc);
            parse_syntax(ptr);
        } else if (strcasecmp(keyword, "color") == 0)
            parse_colors(ptr, FALSE);
@@ -836,7 +836,8 @@ void parse_rcfile(FILE *rcstream
     }
 
     if (endsyntax != NULL && endcolor == NULL)
-       rcfile_error(N_("Syntax has no color commands"));
+       rcfile_error(N_("Syntax %s has no color commands"),
+               endsyntax->desc);
 
     free(buf);
     fclose(rcstream);