From c74c346f097fdd7b5d842080b86ff4b7a5349e86 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 15 Nov 2023 21:42:45 +0100 Subject: [PATCH] better debug --- tiramisu/autolib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,