{"action":"opened","issue":{"url":"https://api.github.com/repos/hadley/purrr/issues/171","labels_url":"https://api.github.com/repos/hadley/purrr/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/hadley/purrr/issues/171/comments","events_url":"https://api.github.com/repos/hadley/purrr/issues/171/events","html_url":"https://github.com/hadley/purrr/issues/171","id":128256646,"number":171,"title":"Reporting from safely()","user":{"login":"jennybc","id":599454,"avatar_url":"https://avatars.githubusercontent.com/u/599454?v=3","gravatar_id":"","url":"https://api.github.com/users/jennybc","html_url":"https://github.com/jennybc","followers_url":"https://api.github.com/users/jennybc/followers","following_url":"https://api.github.com/users/jennybc/following{/other_user}","gists_url":"https://api.github.com/users/jennybc/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybc/subscriptions","organizations_url":"https://api.github.com/users/jennybc/orgs","repos_url":"https://api.github.com/users/jennybc/repos","events_url":"https://api.github.com/users/jennybc/events{/privacy}","received_events_url":"https://api.github.com/users/jennybc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-22T21:59:49Z","updated_at":"2016-01-22T21:59:49Z","closed_at":null,"body":"OK this is superpicky. But you seem to have a policy of suppressing the call in most error messages ...\r\n\r\nCould the errors captured by `safely()` refer to the actual function I gave it? Or maybe not talk about `.f(...)`?\r\n\r\n``` r\r\nlibrary(gh)\r\nlibrary(purrr)\r\n\r\nghsafe <- purrr::safely(gh::gh)\r\nres <- ghsafe(endpoint = \"/user\", .token = \"wut\")\r\nres\r\n#> $result\r\n#> NULL\r\n#> \r\n#> $error\r\n#> <condition in .f(...): GitHub API error: 401 Unauthorized\r\n#>   Bad credentials\r\n#> >\r\nconditionCall(res$error)\r\n#> .f(...)\r\n```"}}