{"action":"created","comment":{"url":"https://api.github.com/repos/tus/tus-py-client/pulls/comments/111251005","pull_request_review_id":32483870,"id":111251005,"diff_hunk":"@@ -54,6 +61,13 @@ def status_code(self):\n         \"\"\"\n         return self.handle.getinfo(pycurl.RESPONSE_CODE)\n \n+    @property\n+    def return_value(self):\n+        \"\"\"\n+        Return request ,essage","path":"tusclient/request.py","position":32,"original_position":32,"commit_id":"89c799adf5b4fae119339591771e1f1fee8e1643","original_commit_id":"89c799adf5b4fae119339591771e1f1fee8e1643","user":{"login":"ifedapoolarewaju","id":8383781,"avatar_url":"https://avatars2.githubusercontent.com/u/8383781?v=3","gravatar_id":"","url":"https://api.github.com/users/ifedapoolarewaju","html_url":"https://github.com/ifedapoolarewaju","followers_url":"https://api.github.com/users/ifedapoolarewaju/followers","following_url":"https://api.github.com/users/ifedapoolarewaju/following{/other_user}","gists_url":"https://api.github.com/users/ifedapoolarewaju/gists{/gist_id}","starred_url":"https://api.github.com/users/ifedapoolarewaju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifedapoolarewaju/subscriptions","organizations_url":"https://api.github.com/users/ifedapoolarewaju/orgs","repos_url":"https://api.github.com/users/ifedapoolarewaju/repos","events_url":"https://api.github.com/users/ifedapoolarewaju/events{/privacy}","received_events_url":"https://api.github.com/users/ifedapoolarewaju/received_events","type":"User","site_admin":false},"body":"little typo here :)","created_at":"2017-04-12T20:23:43Z","updated_at":"2017-04-12T20:23:43Z","html_url":"https://github.com/tus/tus-py-client/pull/2#discussion_r111251005","pull_request_url":"https://api.github.com/repos/tus/tus-py-client/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/tus/tus-py-client/pulls/comments/111251005"},"html":{"href":"https://github.com/tus/tus-py-client/pull/2#discussion_r111251005"},"pull_request":{"href":"https://api.github.com/repos/tus/tus-py-client/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/tus/tus-py-client/pulls/2","id":115593184,"html_url":"https://github.com/tus/tus-py-client/pull/2","diff_url":"https://github.com/tus/tus-py-client/pull/2.diff","patch_url":"https://github.com/tus/tus-py-client/pull/2.patch","issue_url":"https://api.github.com/repos/tus/tus-py-client/issues/2","number":2,"state":"open","locked":false,"title":"Retrieve return value from uploader.request","user":{"login":"Nykakin","id":7022873,"avatar_url":"https://avatars3.githubusercontent.com/u/7022873?v=3","gravatar_id":"","url":"https://api.github.com/users/Nykakin","html_url":"https://github.com/Nykakin","followers_url":"https://api.github.com/users/Nykakin/followers","following_url":"https://api.github.com/users/Nykakin/following{/other_user}","gists_url":"https://api.github.com/users/Nykakin/gists{/gist_id}","starred_url":"https://api.github.com/users/Nykakin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nykakin/subscriptions","organizations_url":"https://api.github.com/users/Nykakin/orgs","repos_url":"https://api.github.com/users/Nykakin/repos","events_url":"https://api.github.com/users/Nykakin/events{/privacy}","received_events_url":"https://api.github.com/users/Nykakin/received_events","type":"User","site_admin":false},"body":"If my upload fail, I set 400 error code together with error message. I cannot retrieve this message from code. I want to use:\r\n```python\r\nclass SomeUnitTest(unittest.TestCase):\r\n    # ...\r\n    def test_something(self):\r\n        # ...\r\n        try:\r\n            uploader.upload()\r\n        except tusclient.exceptions.TusUploadFailed:\r\n            self.assertEqual(uploader.request.return_value,  'MyErrorMessage')\r\n```\r\n","created_at":"2017-04-12T17:19:39Z","updated_at":"2017-04-12T20:23:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5cdd198e3dae1c02ad3dada6a833bd9e1c0802c7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tus/tus-py-client/pulls/2/commits","review_comments_url":"https://api.github.com/repos/tus/tus-py-client/pulls/2/comments","review_comment_url":"https://api.github.com/repos/tus/tus-py-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tus/tus-py-client/issues/2/comments","statuses_url":"https://api.github.com/repos/tus/tus-py-client/statuses/89c799adf5b4fae119339591771e1f1fee8e1643","head":{"label":"Nykakin:Request-return-value","ref":"Request-return-value","sha":"89c799adf5b4fae119339591771e1f1fee8e1643","user":{"login":"Nykakin","id":7022873,"avatar_url":"https://avatars3.githubusercontent.com/u/7022873?v=3","gravatar_id":"","url":"https://api.github.com/users/Nykakin","html_url":"https://github.com/Nykakin","followers_url":"https://api.github.com/users/Nykakin/followers","following_url":"https://api.github.com/users/Nykakin/following{/other_user}","gists_url":"https://api.github.com/users/Nykakin/gists{/gist_id}","starred_url":"https://api.github.com/users/Nykakin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nykakin/subscriptions","organizations_url":"https://api.github.com/users/Nykakin/orgs","repos_url":"https://api.github.com/users/Nykakin/repos","events_url":"https://api.github.com/users/Nykakin/events{/privacy}","received_events_url":"https://api.github.com/users/Nykakin/received_events","type":"User","site_admin":false},"repo":{"id":88075981,"name":"tus-py-client","full_name":"Nykakin/tus-py-client","owner":{"login":"Nykakin","id":7022873,"avatar_url":"https://avatars3.githubusercontent.com/u/7022873?v=3","gravatar_id":"","url":"https://api.github.com/users/Nykakin","html_url":"https://github.com/Nykakin","followers_url":"https://api.github.com/users/Nykakin/followers","following_url":"https://api.github.com/users/Nykakin/following{/other_user}","gists_url":"https://api.github.com/users/Nykakin/gists{/gist_id}","starred_url":"https://api.github.com/users/Nykakin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nykakin/subscriptions","organizations_url":"https://api.github.com/users/Nykakin/orgs","repos_url":"https://api.github.com/users/Nykakin/repos","events_url":"https://api.github.com/users/Nykakin/events{/privacy}","received_events_url":"https://api.github.com/users/Nykakin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nykakin/tus-py-client","description":"A Python client for the tus resumable upload protocol","fork":true,"url":"https://api.github.com/repos/Nykakin/tus-py-client","forks_url":"https://api.github.com/repos/Nykakin/tus-py-client/forks","keys_url":"https://api.github.com/repos/Nykakin/tus-py-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nykakin/tus-py-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nykakin/tus-py-client/teams","hooks_url":"https://api.github.com/repos/Nykakin/tus-py-client/hooks","issue_events_url":"https://api.github.com/repos/Nykakin/tus-py-client/issues/events{/number}","events_url":"https://api.github.com/repos/Nykakin/tus-py-client/events","assignees_url":"https://api.github.com/repos/Nykakin/tus-py-client/assignees{/user}","branches_url":"https://api.github.com/repos/Nykakin/tus-py-client/branches{/branch}","tags_url":"https://api.github.com/repos/Nykakin/tus-py-client/tags","blobs_url":"https://api.github.com/repos/Nykakin/tus-py-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nykakin/tus-py-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nykakin/tus-py-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nykakin/tus-py-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nykakin/tus-py-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Nykakin/tus-py-client/languages","stargazers_url":"https://api.github.com/repos/Nykakin/tus-py-client/stargazers","contributors_url":"https://api.github.com/repos/Nykakin/tus-py-client/contributors","subscribers_url":"https://api.github.com/repos/Nykakin/tus-py-client/subscribers","subscription_url":"https://api.github.com/repos/Nykakin/tus-py-client/subscription","commits_url":"https://api.github.com/repos/Nykakin/tus-py-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nykakin/tus-py-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nykakin/tus-py-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nykakin/tus-py-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nykakin/tus-py-client/contents/{+path}","compare_url":"https://api.github.com/repos/Nykakin/tus-py-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nykakin/tus-py-client/merges","archive_url":"https://api.github.com/repos/Nykakin/tus-py-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nykakin/tus-py-client/downloads","issues_url":"https://api.github.com/repos/Nykakin/tus-py-client/issues{/number}","pulls_url":"https://api.github.com/repos/Nykakin/tus-py-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Nykakin/tus-py-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Nykakin/tus-py-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nykakin/tus-py-client/labels{/name}","releases_url":"https://api.github.com/repos/Nykakin/tus-py-client/releases{/id}","deployments_url":"https://api.github.com/repos/Nykakin/tus-py-client/deployments","created_at":"2017-04-12T16:57:27Z","updated_at":"2017-04-12T16:57:28Z","pushed_at":"2017-04-12T17:18:23Z","git_url":"git://github.com/Nykakin/tus-py-client.git","ssh_url":"git@github.com:Nykakin/tus-py-client.git","clone_url":"https://github.com/Nykakin/tus-py-client.git","svn_url":"https://github.com/Nykakin/tus-py-client","homepage":null,"size":42,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tus:master","ref":"master","sha":"c3e35a7b9da49dc149443cda7514516a36479211","user":{"login":"tus","id":3581905,"avatar_url":"https://avatars0.githubusercontent.com/u/3581905?v=3","gravatar_id":"","url":"https://api.github.com/users/tus","html_url":"https://github.com/tus","followers_url":"https://api.github.com/users/tus/followers","following_url":"https://api.github.com/users/tus/following{/other_user}","gists_url":"https://api.github.com/users/tus/gists{/gist_id}","starred_url":"https://api.github.com/users/tus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tus/subscriptions","organizations_url":"https://api.github.com/users/tus/orgs","repos_url":"https://api.github.com/users/tus/repos","events_url":"https://api.github.com/users/tus/events{/privacy}","received_events_url":"https://api.github.com/users/tus/received_events","type":"Organization","site_admin":false},"repo":{"id":68359659,"name":"tus-py-client","full_name":"tus/tus-py-client","owner":{"login":"tus","id":3581905,"avatar_url":"https://avatars0.githubusercontent.com/u/3581905?v=3","gravatar_id":"","url":"https://api.github.com/users/tus","html_url":"https://github.com/tus","followers_url":"https://api.github.com/users/tus/followers","following_url":"https://api.github.com/users/tus/following{/other_user}","gists_url":"https://api.github.com/users/tus/gists{/gist_id}","starred_url":"https://api.github.com/users/tus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tus/subscriptions","organizations_url":"https://api.github.com/users/tus/orgs","repos_url":"https://api.github.com/users/tus/repos","events_url":"https://api.github.com/users/tus/events{/privacy}","received_events_url":"https://api.github.com/users/tus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tus/tus-py-client","description":"A Python client for the tus resumable upload protocol","fork":false,"url":"https://api.github.com/repos/tus/tus-py-client","forks_url":"https://api.github.com/repos/tus/tus-py-client/forks","keys_url":"https://api.github.com/repos/tus/tus-py-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tus/tus-py-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tus/tus-py-client/teams","hooks_url":"https://api.github.com/repos/tus/tus-py-client/hooks","issue_events_url":"https://api.github.com/repos/tus/tus-py-client/issues/events{/number}","events_url":"https://api.github.com/repos/tus/tus-py-client/events","assignees_url":"https://api.github.com/repos/tus/tus-py-client/assignees{/user}","branches_url":"https://api.github.com/repos/tus/tus-py-client/branches{/branch}","tags_url":"https://api.github.com/repos/tus/tus-py-client/tags","blobs_url":"https://api.github.com/repos/tus/tus-py-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tus/tus-py-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tus/tus-py-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/tus/tus-py-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tus/tus-py-client/statuses/{sha}","languages_url":"https://api.github.com/repos/tus/tus-py-client/languages","stargazers_url":"https://api.github.com/repos/tus/tus-py-client/stargazers","contributors_url":"https://api.github.com/repos/tus/tus-py-client/contributors","subscribers_url":"https://api.github.com/repos/tus/tus-py-client/subscribers","subscription_url":"https://api.github.com/repos/tus/tus-py-client/subscription","commits_url":"https://api.github.com/repos/tus/tus-py-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/tus/tus-py-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/tus/tus-py-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/tus/tus-py-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/tus/tus-py-client/contents/{+path}","compare_url":"https://api.github.com/repos/tus/tus-py-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tus/tus-py-client/merges","archive_url":"https://api.github.com/repos/tus/tus-py-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tus/tus-py-client/downloads","issues_url":"https://api.github.com/repos/tus/tus-py-client/issues{/number}","pulls_url":"https://api.github.com/repos/tus/tus-py-client/pulls{/number}","milestones_url":"https://api.github.com/repos/tus/tus-py-client/milestones{/number}","notifications_url":"https://api.github.com/repos/tus/tus-py-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tus/tus-py-client/labels{/name}","releases_url":"https://api.github.com/repos/tus/tus-py-client/releases{/id}","deployments_url":"https://api.github.com/repos/tus/tus-py-client/deployments","created_at":"2016-09-16T07:09:36Z","updated_at":"2017-03-27T09:23:33Z","pushed_at":"2017-04-12T17:19:39Z","git_url":"git://github.com/tus/tus-py-client.git","ssh_url":"git@github.com:tus/tus-py-client.git","clone_url":"https://github.com/tus/tus-py-client.git","svn_url":"https://github.com/tus/tus-py-client","homepage":null,"size":42,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tus/tus-py-client/pulls/2"},"html":{"href":"https://github.com/tus/tus-py-client/pull/2"},"issue":{"href":"https://api.github.com/repos/tus/tus-py-client/issues/2"},"comments":{"href":"https://api.github.com/repos/tus/tus-py-client/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/tus/tus-py-client/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/tus/tus-py-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tus/tus-py-client/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/tus/tus-py-client/statuses/89c799adf5b4fae119339591771e1f1fee8e1643"}}}}
{"actor":{"display_login":"ifedapoolarewaju"}}