From c77b52d7ca323eee681cf141fe0ba5c4d9bda314 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 12 Dec 2016 14:16:03 +0100 Subject: [PATCH] update notice api:2.2 --- notice/api/2.2.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/notice/api/2.2.md b/notice/api/2.2.md index 8baceab..48d8b57 100644 --- a/notice/api/2.2.md +++ b/notice/api/2.2.md @@ -193,11 +193,8 @@ In order to setup an automatic bound from HTTP requests to API directly, you mus // create request from HTTP data $request = Request::remote($url); - // manage request error - if( $request->error->get() !== Err::Success ) - die('request error'); - // execute request and catch response + // note that request errors will propagate through response $response = $request->dispatch(); // return response as HTTP body