]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
find out who's who on parse error
authorKlaus Kaempf <kkaempf@suse.de>
Fri, 15 Feb 2008 16:47:56 +0000 (16:47 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Fri, 15 Feb 2008 16:47:56 +0000 (16:47 +0000)
tools/repo_patchxml.c
tools/repo_rpmmd.c

index 614f50adcfa55c253c50d4fe93804218779f7f19..3a9c7a95fba29a14c2711dc2a82340f47d976312 100644 (file)
@@ -645,7 +645,7 @@ repo_add_patchxml(Repo *repo, FILE *fp, int flags)
       l = fread(buf, 1, sizeof(buf), fp);
       if (XML_Parse(parser, buf, l, l == 0) == XML_STATUS_ERROR)
        {
-         fprintf(stderr, "%s at line %u\n", XML_ErrorString(XML_GetErrorCode(parser)), (unsigned int)XML_GetCurrentLineNumber(parser));
+         fprintf(stderr, "repo_patchxml: %s at line %u\n", XML_ErrorString(XML_GetErrorCode(parser)), (unsigned int)XML_GetCurrentLineNumber(parser));
          exit(1);
        }
       if (l == 0)
index fe88af5ef9f97e09c75667a95b1bf19d375b659f..a841d2839244cf2b12006317d671b19bcc340e54 100644 (file)
@@ -778,7 +778,7 @@ repo_add_rpmmd(Repo *repo, FILE *fp, int flags)
       l = fread(buf, 1, sizeof(buf), fp);
       if (XML_Parse(parser, buf, l, l == 0) == XML_STATUS_ERROR)
        {
-         fprintf(stderr, "%s at line %u\n", XML_ErrorString(XML_GetErrorCode(parser)), (unsigned int)XML_GetCurrentLineNumber(parser));
+         fprintf(stderr, "repo_rpmmd: %s at line %u\n", XML_ErrorString(XML_GetErrorCode(parser)), (unsigned int)XML_GetCurrentLineNumber(parser));
          exit(1);
        }
       if (l == 0)