better debug
This commit is contained in:
parent
e09ca78487
commit
c74c346f09
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue