Skip to content

Commit

Permalink
Merge pull request #2712 from macjohnny/patch-1
Browse files Browse the repository at this point in the history
Better string representation of errors
  • Loading branch information
EzraBrooks committed Nov 27, 2017
2 parents 10fac07 + c9e1ca9 commit b53929a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/karma.js
Expand Up @@ -136,6 +136,10 @@ var Karma = function (socket, iframe, opener, navigator, location) {
message += '\n\n' + error.stack
}

// create an object with the string representation of the message to ensure all its content is properly
// transferred to the console log
message = {message: message, str: message.toString()}

socket.emit('karma_error', message)
this.complete()
return false
Expand Down

0 comments on commit b53929a

Please sign in to comment.