Skip to content

Commit

Permalink
Merge pull request #228 from rwjblue/stefanpenner-patch-1
Browse files Browse the repository at this point in the history
[FIXES #227]
  • Loading branch information
rwjblue committed Jun 2, 2016
2 parents 1d6281d + 9bc6d11 commit 47d930c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ember-qunit/test-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function testWrapper(qunit /*, testName, expected, callback, asyn
var message;
if (reason instanceof Error) {
message = reason.stack;
if (reason.message && message.indexOf(reason.message) < 0) {
if (reason.message && message && message.indexOf(reason.message) < 0) {
// PhantomJS has a `stack` that does not contain the actual
// exception message.
message = Ember.inspect(reason) + "\n" + message;
Expand Down

0 comments on commit 47d930c

Please sign in to comment.