Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[XBT] Expanded error message for cfg values
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Tue, 2 Feb 2016 16:16:58 +0000 (17:16 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Tue, 2 Feb 2016 16:21:12 +0000 (17:21 +0100)
This should help users understand why their code breaks; we don't rename
very often so I think this is sufficient.

src/xbt/config.c

index 0798011..aeb7baa 100644 (file)
@@ -465,7 +465,8 @@ static xbt_cfgelm_t xbt_cfgelm_get(xbt_cfg_t cfg,
   if (!res) {
     xbt_cfg_help(cfg);
     THROWF(not_found_error, 0,
-           "No registered variable '%s' in this config set", name);
+           "No registered variable '%s' in this config set. It is possible that this "\
+           "configuration option has been renamed; please read the file ChangeLog carefully!", name);
   }
 
   xbt_assert(type == xbt_cfgelm_any || res->type == type,