{"action":"created","issue":{"url":"https://api.github.com/repos/cweagans/composer-patches/issues/31","repository_url":"https://api.github.com/repos/cweagans/composer-patches","labels_url":"https://api.github.com/repos/cweagans/composer-patches/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/cweagans/composer-patches/issues/31/comments","events_url":"https://api.github.com/repos/cweagans/composer-patches/issues/31/events","html_url":"https://github.com/cweagans/composer-patches/pull/31","id":135702944,"number":31,"title":"Throw a new exception after catching Cannot apply patch , so that Com…","user":{"login":"pivulic","id":7068697,"avatar_url":"https://avatars.githubusercontent.com/u/7068697?v=3","gravatar_id":"","url":"https://api.github.com/users/pivulic","html_url":"https://github.com/pivulic","followers_url":"https://api.github.com/users/pivulic/followers","following_url":"https://api.github.com/users/pivulic/following{/other_user}","gists_url":"https://api.github.com/users/pivulic/gists{/gist_id}","starred_url":"https://api.github.com/users/pivulic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivulic/subscriptions","organizations_url":"https://api.github.com/users/pivulic/orgs","repos_url":"https://api.github.com/users/pivulic/repos","events_url":"https://api.github.com/users/pivulic/events{/privacy}","received_events_url":"https://api.github.com/users/pivulic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-23T10:52:36Z","updated_at":"2016-02-29T17:27:54Z","closed_at":"2016-02-29T03:46:04Z","pull_request":{"url":"https://api.github.com/repos/cweagans/composer-patches/pulls/31","html_url":"https://github.com/cweagans/composer-patches/pull/31","diff_url":"https://github.com/cweagans/composer-patches/pull/31.diff","patch_url":"https://github.com/cweagans/composer-patches/pull/31.patch"},"body":"### Problem\r\nWhen a patch fails, an exception is thrown from: https://github.com/cweagans/composer-patches/blob/master/src/Patches.php#L349\r\n\r\nThe exception is then catched in https://github.com/cweagans/composer-patches/blob/master/src/Patches.php#L264\r\n\r\nDuring the Composer install, the patch fails to be applied and the user is informed about the error, but the install process continues.\r\n\r\n### Expected Result\r\nIf a patch fails to be applied, an exception should be thrown so that Composer fails the install and the user is notified about the error. Today, if the Composer installs several packages, the user might not wait for the entire install to finish and might therefor miss that a patch failed."},"comment":{"url":"https://api.github.com/repos/cweagans/composer-patches/issues/comments/190301367","html_url":"https://github.com/cweagans/composer-patches/pull/31#issuecomment-190301367","issue_url":"https://api.github.com/repos/cweagans/composer-patches/issues/31","id":190301367,"user":{"login":"cweagans","id":101590,"avatar_url":"https://avatars.githubusercontent.com/u/101590?v=3","gravatar_id":"","url":"https://api.github.com/users/cweagans","html_url":"https://github.com/cweagans","followers_url":"https://api.github.com/users/cweagans/followers","following_url":"https://api.github.com/users/cweagans/following{/other_user}","gists_url":"https://api.github.com/users/cweagans/gists{/gist_id}","starred_url":"https://api.github.com/users/cweagans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cweagans/subscriptions","organizations_url":"https://api.github.com/users/cweagans/orgs","repos_url":"https://api.github.com/users/cweagans/repos","events_url":"https://api.github.com/users/cweagans/events{/privacy}","received_events_url":"https://api.github.com/users/cweagans/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T17:27:54Z","updated_at":"2016-02-29T17:27:54Z","body":"When there's enough to justify a new release - 1-2 months tops."}}