diff options
| author | Filipe Brandenburger <filbranden@google.com> | 2015-09-01 08:30:26 -0700 | 
|---|---|---|
| committer | Filipe Brandenburger <filbranden@google.com> | 2015-09-01 08:35:54 -0700 | 
| commit | 3875c85bae4e9deab4005e156cd69eae2a5401cd (patch) | |
| tree | 0b171519c64b8c350b6ab578340fc2b28bace53a /src | |
| parent | d4ebeb4fb39a03c1ea2be3648dd8aaeade6c5ba2 (diff) | |
core: Log parse errors in config_parse_join_controllers
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/main.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/core/main.c b/src/core/main.c index e5d9ec1a4e..c6d283896d 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -538,6 +538,7 @@ static int config_parse_join_controllers(const char *unit,                                           void *data,                                           void *userdata) { +        const char *whole_rvalue = rvalue;          unsigned n = 0;          assert(filename); @@ -552,8 +553,10 @@ static int config_parse_join_controllers(const char *unit,                  int r;                  r = extract_first_word(&rvalue, &word, WHITESPACE, EXTRACT_QUOTES); -                if (r < 0) +                if (r < 0) { +                        log_syntax(unit, LOG_ERR, filename, line, r, "Invalid value for %s: %s", lvalue, whole_rvalue);                          return r; +                }                  if (r == 0)                          break; | 
