X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/31aa5fffb80ebd3852adef3aae7fe7cc5176beac..c30a24ef37908335f59b60f87083bf3575305953:/src/xbt/dict.c diff --git a/src/xbt/dict.c b/src/xbt/dict.c index 4bd519ba40..f116e5aeaa 100644 --- a/src/xbt/dict.c +++ b/src/xbt/dict.c @@ -320,7 +320,7 @@ void *xbt_dict_get_ext(xbt_dict_t dict, } if (current == NULL) - return NULL; + THROW2(not_found_error, 0, "key %.*s not found", key_len, key); return current->content; } @@ -341,7 +341,7 @@ void *xbt_dict_get_or_null_ext(xbt_dict_t dict, } if (current == NULL) - THROW2(not_found_error, 0, "key %.*s not found", key_len, key); + return NULL; return current->content; }