From 185c296921b09bed1040d303b9681e9f94386daf Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sun, 17 Jan 2010 17:57:44 +0000 Subject: libxenlight: Add the line number to the config file parsing error message Signed-off-by: Stefano Stabellini --- tools/libxl/xl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index ed3ca4e1ce..52bd8b8d02 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -407,7 +407,7 @@ static void parse_config_file(const char *filename, newfilename = compat_config_file(filename); config_init (&config); if (!config_read_file(&config, newfilename)) { - fprintf(stderr, "Failed to parse config file %s, try removing any embedded python code\n", config_error_text(&config)); + fprintf(stderr, "Failed to parse config file %s on line %d, try removing any embedded python code\n", config_error_text(&config), config_error_line(&config)); exit(1); } free(newfilename); -- cgit v1.2.3