From: Qiang Huang Date: Mon, 23 Sep 2013 16:23:27 +0000 (-0500) Subject: When callback of one config line fail, we'd better give the exactly X-Git-Tag: lxc-1.0.0.alpha2~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e2f384e09a51255e677f2f3f1c5c9b92742660;p=thirdparty%2Flxc.git When callback of one config line fail, we'd better give the exactly info to help users locate the misconfig. Signed-off-by: Qiang Huang Acked-by: Serge Hallyn Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/parse.c b/src/lxc/parse.c index 7875c8969..5fca79ef0 100644 --- a/src/lxc/parse.c +++ b/src/lxc/parse.c @@ -101,8 +101,10 @@ int lxc_file_for_each_line(const char *file, lxc_file_cb callback, void *data) while (getline(&line, &len, f) != -1) { err = callback(line, data); - if (err) + if (err) { + ERROR("Failed to parse config: %s", line); break; + } } if (line)