{"action":"opened","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/826","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/826/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/826/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/826/events","html_url":"https://github.com/aws/aws-sdk-ruby/issues/826","id":81671638,"number":826,"title":"Invalid grant id or group id in S3 acl grant raises vague error","user":{"login":"nate","id":130,"avatar_url":"https://avatars.githubusercontent.com/u/130?v=3","gravatar_id":"","url":"https://api.github.com/users/nate","html_url":"https://github.com/nate","followers_url":"https://api.github.com/users/nate/followers","following_url":"https://api.github.com/users/nate/following{/other_user}","gists_url":"https://api.github.com/users/nate/gists{/gist_id}","starred_url":"https://api.github.com/users/nate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nate/subscriptions","organizations_url":"https://api.github.com/users/nate/orgs","repos_url":"https://api.github.com/users/nate/repos","events_url":"https://api.github.com/users/nate/events{/privacy}","received_events_url":"https://api.github.com/users/nate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-27T23:34:17Z","updated_at":"2015-05-27T23:34:17Z","closed_at":null,"body":"When you use an invalid email address for granting S3 permissions, you get a nice error:\r\n\r\n```\r\nAws::S3::Errors::UnresolvableGrantByEmailAddress - The e-mail address you provided does not match any account on record.\r\n```\r\n\r\nBut when you use an invalid id or group uri you get a more vague error and a user would have to parse the error message at runtime to differentiate:\r\n\r\n```\r\nAws::S3::Errors::InvalidArgument - Invalid id\r\nAws::S3::Errors::InvalidArgument - Invalid group uri\r\n```\r\n"}}