Better diagnostic message for unparseable macro error.
authorjbj <devnull@localhost>
Thu, 8 Apr 1999 19:24:56 +0000 (19:24 +0000)
committerjbj <devnull@localhost>
Thu, 8 Apr 1999 19:24:56 +0000 (19:24 +0000)
CVS patchset: 2971
CVS date: 1999/04/08 19:24:56

lib/macro.c
rpmio/macro.c

index 008ccfe..69bb641 100644 (file)
@@ -902,7 +902,7 @@ expandMacro(MacroBuf *mb)
        fn = (fe - f);
        gn = (ge - g);
        if (fn <= 0) {
-               rpmError(RPMERR_BADSPEC, _("Empty token"));
+               rpmError(RPMERR_BADSPEC, _("A %% is followed by an unparseable macro"));
                s = se;
                continue;
        }
index 008ccfe..69bb641 100644 (file)
@@ -902,7 +902,7 @@ expandMacro(MacroBuf *mb)
        fn = (fe - f);
        gn = (ge - g);
        if (fn <= 0) {
-               rpmError(RPMERR_BADSPEC, _("Empty token"));
+               rpmError(RPMERR_BADSPEC, _("A %% is followed by an unparseable macro"));
                s = se;
                continue;
        }