{"action":"closed","issue":{"url":"https://api.github.com/repos/showpad/karma-rollup-preprocessor/issues/4","labels_url":"https://api.github.com/repos/showpad/karma-rollup-preprocessor/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/showpad/karma-rollup-preprocessor/issues/4/comments","events_url":"https://api.github.com/repos/showpad/karma-rollup-preprocessor/issues/4/events","html_url":"https://github.com/showpad/karma-rollup-preprocessor/issues/4","id":125211177,"number":4,"title":"Better logging of bundling errors","user":{"login":"brianmhunt","id":135528,"avatar_url":"https://avatars.githubusercontent.com/u/135528?v=3","gravatar_id":"","url":"https://api.github.com/users/brianmhunt","html_url":"https://github.com/brianmhunt","followers_url":"https://api.github.com/users/brianmhunt/followers","following_url":"https://api.github.com/users/brianmhunt/following{/other_user}","gists_url":"https://api.github.com/users/brianmhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/brianmhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianmhunt/subscriptions","organizations_url":"https://api.github.com/users/brianmhunt/orgs","repos_url":"https://api.github.com/users/brianmhunt/repos","events_url":"https://api.github.com/users/brianmhunt/events{/privacy}","received_events_url":"https://api.github.com/users/brianmhunt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-06T16:25:23Z","updated_at":"2016-01-11T08:09:57Z","closed_at":"2016-01-11T08:09:57Z","body":"I noticed that bundling errors seem to fall silent.\r\n\r\nThe simplest workaround is to add e.g.\r\n\r\n```javascript\r\nlog.error(\"Bundle error:\", error)\r\n```\r\n\r\nat https://github.com/showpad/karma-rollup-preprocessor/blob/master/lib/index.js#L44\r\n\r\nI don't know Karma's internal workings well enough to speculate why `done(error, null)` does not report the error, but I noted the coffee plugin [similarly logs a message](https://github.com/karma-runner/karma-coffee-preprocessor/blob/master/index.js#L32) with\r\n\r\n```javascript\r\n      log.error('%s\\n  at %s:%d', e.message, file.originalPath, e.location.first_line)\r\n```\r\n\r\nCheers."}}