{"action":"created","issue":{"url":"https://api.github.com/repos/jay0lee/GAM/issues/74","labels_url":"https://api.github.com/repos/jay0lee/GAM/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/jay0lee/GAM/issues/74/comments","events_url":"https://api.github.com/repos/jay0lee/GAM/issues/74/events","html_url":"https://github.com/jay0lee/GAM/issues/74","id":90765497,"number":74,"title":"exit codes","user":{"login":"sewdan11","id":11520177,"avatar_url":"https://avatars.githubusercontent.com/u/11520177?v=3","gravatar_id":"","url":"https://api.github.com/users/sewdan11","html_url":"https://github.com/sewdan11","followers_url":"https://api.github.com/users/sewdan11/followers","following_url":"https://api.github.com/users/sewdan11/following{/other_user}","gists_url":"https://api.github.com/users/sewdan11/gists{/gist_id}","starred_url":"https://api.github.com/users/sewdan11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sewdan11/subscriptions","organizations_url":"https://api.github.com/users/sewdan11/orgs","repos_url":"https://api.github.com/users/sewdan11/repos","events_url":"https://api.github.com/users/sewdan11/events{/privacy}","received_events_url":"https://api.github.com/users/sewdan11/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-24T19:40:47Z","updated_at":"2015-06-26T00:46:07Z","closed_at":"2015-06-25T12:25:55Z","body":"The older versions of gam, prior to the versions using oauth 2.0 used exit codes that can be checked from a dos batch. We upgraded all of our processes using gam ver 3.41 and was disappointed that we can no longer check the errorlevel to find the error numbers. The errors are now sent to stderr. \r\n\r\nWe have to redirect stdout to a file to capture the error codes and the format for the user errors are in a different format from the group errors.\r\n\r\nGroup error examples:\r\nadding owner user@domain.com...Error 409: Member already exists. - duplicate  [returns errorlevel 0 instead of 409]\r\nadding owner user@domain.com...Error 404: Resource Not Found: groupKey - notFound  [returns errorlevel 0 instead of 404]\r\n\r\nUser error example:\r\nError 404: Resource Not Found: userKey - notFound [returns errorlevel 404]\r\nexitste is not a valid argument for gam info user [returns errorlevel 3]\r\nError 404: Resource Not Found: userKey - notFound [returns errorlevel 0 instead of 404]\r\n\r\nThis issue requires us to parse the stderr to find the error number. Without knowing where the errors numbers will appear in the output, we have missed some. \r\n\r\nPlease restore all of the exit codes like the older versions of GAM had."},"comment":{"url":"https://api.github.com/repos/jay0lee/GAM/issues/comments/115447653","html_url":"https://github.com/jay0lee/GAM/issues/74#issuecomment-115447653","issue_url":"https://api.github.com/repos/jay0lee/GAM/issues/74","id":115447653,"user":{"login":"daethnir","id":238472,"avatar_url":"https://avatars.githubusercontent.com/u/238472?v=3","gravatar_id":"","url":"https://api.github.com/users/daethnir","html_url":"https://github.com/daethnir","followers_url":"https://api.github.com/users/daethnir/followers","following_url":"https://api.github.com/users/daethnir/following{/other_user}","gists_url":"https://api.github.com/users/daethnir/gists{/gist_id}","starred_url":"https://api.github.com/users/daethnir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daethnir/subscriptions","organizations_url":"https://api.github.com/users/daethnir/orgs","repos_url":"https://api.github.com/users/daethnir/repos","events_url":"https://api.github.com/users/daethnir/events{/privacy}","received_events_url":"https://api.github.com/users/daethnir/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T00:46:07Z","updated_at":"2015-06-26T00:46:07Z","body":"Why'd you close this issue? I think it would be a great improvement.\r\n"}}