better debug

This commit is contained in:
egarette@silique.fr 2023-11-15 21:42:45 +01:00
parent e09ca78487
commit c74c346f09

View file

@ -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,