From 8f7a5adde89d70d96e812d510e531014119deb4c Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 18 Oct 2013 09:15:04 +0200 Subject: include invalid property name in property filter error message --- runtime/conf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/conf.c b/runtime/conf.c index c3c7e447..3d788cf4 100644 --- a/runtime/conf.c +++ b/runtime/conf.c @@ -486,10 +486,9 @@ rsRetVal DecodePRIFilter(uchar *pline, uchar pmask[]) } -/* Helper to cfline(). This function takes the filter part of a property +/* This function takes the filter part of a property * based filter and decodes it. It processes the line up to the beginning - * of the action part. A pointer to that beginnig is passed back to the caller. - * rgerhards 2005-09-15 + * of the action part. */ rsRetVal DecodePropFilter(uchar *pline, struct cnfstmt *stmt) { @@ -518,7 +517,8 @@ rsRetVal DecodePropFilter(uchar *pline, struct cnfstmt *stmt) } iRet = propNameToID(pCSPropName, &stmt->d.s_propfilt.propID); if(iRet != RS_RET_OK) { - errmsg.LogError(0, iRet, "error %d parsing filter property - ignoring selector", iRet); + errmsg.LogError(0, iRet, "invalid property name '%s' in filter", + cstrGetSzStrNoNULL(pCSPropName)); rsParsDestruct(pPars); return(iRet); } -- cgit v1.2.3