From: mquinson Date: Wed, 21 Sep 2005 14:32:29 +0000 (+0000) Subject: Make the error message both correct and explicit about what's going wrong (%s is... X-Git-Tag: v3.3~3626 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5a56a7a2f426ab715677abb73698a586a5e6be4c?hp=4756cec22a00f6fd09a87e4b92e441f70e5ee6cd 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 --- 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';