{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1259","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1259/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1259/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1259/events","html_url":"https://github.com/webpack/webpack/pull/1259","id":95623319,"number":1259,"title":"Add original error to stats-output","user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-17T09:40:13Z","updated_at":"2015-07-17T14:50:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/webpack/webpack/pulls/1259","html_url":"https://github.com/webpack/webpack/pull/1259","diff_url":"https://github.com/webpack/webpack/pull/1259.diff","patch_url":"https://github.com/webpack/webpack/pull/1259.patch"},"body":"I'm using the `stylus-loader`, and in one of my `mixin`s I raise an error. If the error is raised during compilation, the compilation fails (which is good), but the original error is lost (which is bad).\r\n\r\nI wrote some on Gitter about it, link for reference: https://gitter.im/webpack/webpack?at=55a8bbd3ad99869443daa560\r\n\r\nWithout this patch, error output is\r\n![image](https://cloud.githubusercontent.com/assets/1404810/8744539/33d0082c-2c78-11e5-85a8-6c58370c820a.png)\r\n\r\nwhile this change makes the output\r\n![image](https://cloud.githubusercontent.com/assets/1404810/8744563/6072fe16-2c78-11e5-8f4c-ab18802928bb.png)\r\n\r\nI was unable to write a test for it. Do I have to force a `ModuleBuildError`?\r\n\r\nIt's a pretty naive implementation as well, but it gets the job done in my case at least.\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/122299292","html_url":"https://github.com/webpack/webpack/pull/1259#issuecomment-122299292","issue_url":"https://api.github.com/repos/webpack/webpack/issues/1259","id":122299292,"user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T14:50:00Z","updated_at":"2015-07-17T14:50:00Z","body":"Sure. Not completely boiled down, but should do the trick. https://github.com/SimenB/webpack-fun/tree/error-mixin\r\n\r\n`npm install && npm start`\r\n"}}