def web_error_and_result(f):
@wraps(f)<EOL>def web_error_and_result_decorator(*args, **kwargs):<EOL><INDENT>return error_and_result_decorator_inner_fn(f, True, *args, **kwargs)<EOL><DEDENT>return web_error_and_result_decorator<EOL>
Same as error_and_result decorator, except:
If no exception was raised during task execution, ONLY IN CASE OF WEB
REQUEST formats task result into json dictionary {'data': task return value}