diff --git a/tiramisu/autolib.py b/tiramisu/autolib.py index e894393..e355955 100644 --- a/tiramisu/autolib.py +++ b/tiramisu/autolib.py @@ -363,7 +363,7 @@ def manager_callback(callback: Callable, except AttributeError as err: if isinstance(param, ParamDynOption) and param.optional: # cannot acces, simulate a propertyerror - raise PropertiesOptionError(options_bag[-1], + raise PropertiesOptionError(param, ['configerror'], config_bag.context.get_settings(), ) @@ -550,9 +550,9 @@ def carry_out_calculation(option, raise err if callback.__name__ in FUNCTION_WAITING_FOR_DICT: if key is None: - args.append({'propertyerror': str(err)}) + args.append({'propertyerror': str(err), 'name': option.impl_get_display_name()}) else: - kwargs[key] = {'propertyerror': str(err)} + kwargs[key] = {'propertyerror': str(err), 'name': option.impl_get_display_name()} ret = calculate(option, callback, allow_value_error,