{"action":"opened","issue":{"url":"https://api.github.com/repos/geeklearningio/gl-vsts-tasks-yarn/issues/16","repository_url":"https://api.github.com/repos/geeklearningio/gl-vsts-tasks-yarn","labels_url":"https://api.github.com/repos/geeklearningio/gl-vsts-tasks-yarn/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/geeklearningio/gl-vsts-tasks-yarn/issues/16/comments","events_url":"https://api.github.com/repos/geeklearningio/gl-vsts-tasks-yarn/issues/16/events","html_url":"https://github.com/geeklearningio/gl-vsts-tasks-yarn/issues/16","id":230618548,"number":16,"title":"Task does not fail when yarnTask fails","user":{"login":"larsbj1988","id":4107701,"avatar_url":"https://avatars3.githubusercontent.com/u/4107701?v=3","gravatar_id":"","url":"https://api.github.com/users/larsbj1988","html_url":"https://github.com/larsbj1988","followers_url":"https://api.github.com/users/larsbj1988/followers","following_url":"https://api.github.com/users/larsbj1988/following{/other_user}","gists_url":"https://api.github.com/users/larsbj1988/gists{/gist_id}","starred_url":"https://api.github.com/users/larsbj1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsbj1988/subscriptions","organizations_url":"https://api.github.com/users/larsbj1988/orgs","repos_url":"https://api.github.com/users/larsbj1988/repos","events_url":"https://api.github.com/users/larsbj1988/events{/privacy}","received_events_url":"https://api.github.com/users/larsbj1988/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-23T07:55:51Z","updated_at":"2017-05-23T07:55:51Z","closed_at":null,"body":"When running a yarn task that throws an error (typescript compile error), the task still looks like it succeded. \r\nI think some configuration might be missing here: \r\n```\r\nvar result = await yarn.exec({\r\n            cwd: projectPath,\r\n            env: <any>process.env,\r\n            silent: false,\r\n            failOnStdErr: undefined,\r\n            ignoreReturnCode: undefined,\r\n            outStream: undefined,\r\n            errStream: undefined\r\n        });\r\n\r\n        tl.setResult(tl.TaskResult.Succeeded, \"Yarn executed successfully\");\r\n```\r\n\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4107701/26343742/76884ae6-3f9d-11e7-8d79-21ec2161e726.png)\r\n"}}
{"actor":{"display_login":"larsbj1988"}}