def failed_to_convert_value_to_target(value): return DatabandBuildError( "Can't convert '%s' of type %s to target." % (safe_value(value), type(value)), help_msg="You can convert only values with type of " "Target, Tasks and strings to the Path/PathStr/Target", )
def failed_to_convert_to_target_type(param, x, ex): return DatabandBuildError( "Failed to convert '{value}' to {param_type}".format( value=safe_value(x), param=param, param_type=param.value_type.type), show_exc_info=False, nested_exceptions=[ex], help_msg="Check your %s logic" % param.name, )