From 5a56a7a2f426ab715677abb73698a586a5e6be4c Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 21 Sep 2005 14:32:29 +0000 Subject: [PATCH 1/1] Make the error message both correct and explicit about what's going wrong (%s is the whole block which should be name:value, not only the option name since we failed to parse the name at this point) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1731 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xbt/config.c b/src/xbt/config.c index f56f61b66e..6b791c080c 100644 --- a/src/xbt/config.c +++ b/src/xbt/config.c @@ -565,7 +565,7 @@ xbt_cfg_set_parse(xbt_cfg_t cfg, const char *options) { if (!val) { free(optionlist_cpy); xbt_assert1(FALSE, - "Bad format for option '%s'; Should be of the form 'name:value'", + "Option '%s' badly formated. Should be of the form 'name:value'", name); } *(val++)='\0'; -- 2.20.1