{"action":"opened","issue":{"url":"https://api.github.com/repos/testem/testem/issues/1192","repository_url":"https://api.github.com/repos/testem/testem","labels_url":"https://api.github.com/repos/testem/testem/issues/1192/labels{/name}","comments_url":"https://api.github.com/repos/testem/testem/issues/1192/comments","events_url":"https://api.github.com/repos/testem/testem/issues/1192/events","html_url":"https://github.com/testem/testem/issues/1192","id":271171580,"number":1192,"title":"Testem shows undefined error when before_tests fails","user":{"login":"tjgq","id":4370077,"avatar_url":"https://avatars3.githubusercontent.com/u/4370077?v=4","gravatar_id":"","url":"https://api.github.com/users/tjgq","html_url":"https://github.com/tjgq","followers_url":"https://api.github.com/users/tjgq/followers","following_url":"https://api.github.com/users/tjgq/following{/other_user}","gists_url":"https://api.github.com/users/tjgq/gists{/gist_id}","starred_url":"https://api.github.com/users/tjgq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjgq/subscriptions","organizations_url":"https://api.github.com/users/tjgq/orgs","repos_url":"https://api.github.com/users/tjgq/repos","events_url":"https://api.github.com/users/tjgq/events{/privacy}","received_events_url":"https://api.github.com/users/tjgq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-04T06:49:06Z","updated_at":"2017-11-04T06:49:06Z","closed_at":null,"author_association":"NONE","body":"See https://github.com/tjgq/testem-browserify-error, minimally adapted from https://github.com/testem/testem/tree/master/examples/browserify. There is a syntax error in `hello.js`, which causes the browserify command to fail. When I run testem with `npm test`, instead of the browserify error message, the console UI shows\r\n```\r\nTestem error\r\n\r\nundefined\r\nundefined\r\n```\r\n\r\nThe problem is in `lib/reporters/dev/index.js`:\r\n```\r\n  report: function(browserName, result) {\r\n    if (isTestemItself(result)) {\r\n      return this._showError('Testem error', result.error.message);\r\n    }\r\n```\r\n\r\nThe `_showError` method should be called with `result.error` rather than `result.error.message`."}}
{"actor":{"display_login":"tjgq"}}