{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/2050","repository_url":"https://api.github.com/repos/mochajs/mocha","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/2050/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/2050/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/2050/events","html_url":"https://github.com/mochajs/mocha/issues/2050","id":126430432,"number":2050,"title":"Mocha Crash -- mocha/lib/reporters/base.js:208:27 -- TypeError: message.match is not a function","user":{"login":"jcalfee","id":204121,"avatar_url":"https://avatars.githubusercontent.com/u/204121?v=3","gravatar_id":"","url":"https://api.github.com/users/jcalfee","html_url":"https://github.com/jcalfee","followers_url":"https://api.github.com/users/jcalfee/followers","following_url":"https://api.github.com/users/jcalfee/following{/other_user}","gists_url":"https://api.github.com/users/jcalfee/gists{/gist_id}","starred_url":"https://api.github.com/users/jcalfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcalfee/subscriptions","organizations_url":"https://api.github.com/users/jcalfee/orgs","repos_url":"https://api.github.com/users/jcalfee/repos","events_url":"https://api.github.com/users/jcalfee/events{/privacy}","received_events_url":"https://api.github.com/users/jcalfee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-01-13T14:34:27Z","updated_at":"2016-06-27T15:46:36Z","closed_at":null,"body":"Mocha crashes on this exception below.  \r\nmocha\": \"2.3.4\"\r\n```\r\n> mocha --compilers js:babel-core/register --recursive \"--watch\" \"test/wallet_api_spec.js\"\r\n\r\n\r\n\r\n\r\n  Wallet API client\r\n    ✓ createWallet (147ms)\r\n    ✓ createWallet (duplicate) (144ms)\r\n    ✓ fetchWallet (Recovery)\r\n    ✓ fetchWallet (Not Modified)\r\n    ✓ fetchWallet (Not Exist)\r\n    1) saveWallet\r\n    2) saveWallet (Conflict)\r\n    3) saveWallet (Unknown key)\r\n    ✓ changePassword\r\n    ✓ deleteWallet\r\nWARN: close called with active subscriptions 2\r\n\r\n\r\n  7 passing (2s)\r\n  3 failing\r\n\r\n  4) \"after all\" hook\r\n\r\n  7 passing (2s)\r\n  4 failing\r\n\r\n/home/jcalfee/plasma/node_modules/mocha/lib/reporters/base.js:208\r\n      var match = message.match(/^([^:]+): expected/);\r\n                          ^\r\nTypeError: message.match is not a function\r\n    at /home/jcalfee/plasma/node_modules/mocha/lib/reporters/base.js:208:27\r\n    at Array.forEach (native)\r\n    at Function.exports.list (/home/jcalfee/plasma/node_modules/mocha/lib/reporters/base.js:163:12)\r\n    at Spec.Base.epilogue (/home/jcalfee/plasma/node_modules/mocha/lib/reporters/base.js:328:10)\r\n    at emitNone (events.js:72:20)\r\n    at Runner.emit (events.js:163:7)\r\n    at /home/jcalfee/plasma/node_modules/mocha/lib/runner.js:735:12\r\n    at done (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:619:7)\r\n    at Runner.next [as nextSuite] (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:586:16)\r\n    at Runner.uncaught (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:703:17)\r\n    at process.uncaught (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:727:10)\r\n    at emitOne (events.js:77:13)\r\n    at process.emit (events.js:166:7)\r\n    at process._fatalException (node.js:218:26)\r\n    at emitNone (events.js:72:20)\r\n    at Runner.emit (events.js:163:7)\r\n    at /home/jcalfee/plasma/node_modules/mocha/lib/runner.js:735:12\r\n    at /home/jcalfee/plasma/node_modules/mocha/lib/runner.js:626:9\r\n    at next (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:283:14)\r\n    at Immediate._onImmediate (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:319:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:368:17)\r\nnpm ERR! Test failed.  See above for more details.\r\n\r\nnpm ERR! Linux 3.13.0-66-generic\r\nnpm ERR! argv \"/home/jcalfee/opt/iojs-v2.0.1-linux-x64/bin/iojs\" \"/home/jcalfee/opt/iojs-v2.0.1-linux-x64/bin/npm\" \"run\" \"test:watch\" \"--\" \"test/wallet_api_spec.js\"\r\nnpm ERR! node v2.0.1\r\nnpm ERR! npm  v2.9.0\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! @graphene/wallet-client@1.0.0 test:watch: `npm test -- --watch \"test/wallet_api_spec.js\"`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the @graphene/wallet-client@1.0.0 test:watch script 'npm test -- --watch \"test/wallet_api_spec.js\"'.\r\nnpm ERR! This is most likely a problem with the @graphene/wallet-client package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     npm test -- --watch \"test/wallet_api_spec.js\"\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls @graphene/wallet-client\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/jcalfee/plasma/libraries/@graphene/wallet-client/npm-debug.log\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/228786404","html_url":"https://github.com/mochajs/mocha/issues/2050#issuecomment-228786404","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/2050","id":228786404,"user":{"login":"cullenr","id":495048,"avatar_url":"https://avatars.githubusercontent.com/u/495048?v=3","gravatar_id":"","url":"https://api.github.com/users/cullenr","html_url":"https://github.com/cullenr","followers_url":"https://api.github.com/users/cullenr/followers","following_url":"https://api.github.com/users/cullenr/following{/other_user}","gists_url":"https://api.github.com/users/cullenr/gists{/gist_id}","starred_url":"https://api.github.com/users/cullenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cullenr/subscriptions","organizations_url":"https://api.github.com/users/cullenr/orgs","repos_url":"https://api.github.com/users/cullenr/repos","events_url":"https://api.github.com/users/cullenr/events{/privacy}","received_events_url":"https://api.github.com/users/cullenr/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T15:46:36Z","updated_at":"2016-06-27T15:46:36Z","body":"I get this error when I set the message of an error to something other than a string.\r\n\r\n`assert(false, {status: 400,  message: \"Something went wrong\"});`\r\n"}}
{"actor":{"display_login":"cullenr"}}