Clarify error message
authorAlan T. DeKok <aland@freeradius.org>
Mon, 20 Aug 2012 09:29:09 +0000 (11:29 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 21 Aug 2012 13:35:43 +0000 (15:35 +0200)
src/main/evaluate.c

index d14e958..fd0a595 100644 (file)
@@ -80,6 +80,8 @@ static const char *expand_string(char *buffer, size_t sizeof_buffer,
                                             buffer, sizeof_buffer, NULL,
                                             NULL, 0);
                if (result != 0) {
+                       radlog(L_ERR, "Failed to execute program in string expansion: %s",
+                              value);
                        return NULL;
                }
 
@@ -728,8 +730,6 @@ int radius_evaluate_condition(REQUEST *request, int modreturn, int depth,
                        pleft = expand_string(xleft, sizeof(xleft), request,
                                              lt, left);
                        if (!pleft) {
-                               radlog(L_ERR, "Failed expanding string at: %s",
-                                      left);
                                return FALSE;
                        }
                }
@@ -817,8 +817,6 @@ int radius_evaluate_condition(REQUEST *request, int modreturn, int depth,
                        pright = expand_string(xright, sizeof(xright), request,
                                               rt, right);
                        if (!pright) {
-                               radlog(L_ERR, "Failed expanding string at: %s",
-                                      right);
                                return FALSE;
                        }
                }