Skip to content

Commit

Permalink
feat: better string representation of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
macjohnny committed Nov 27, 2017
1 parent 10fac07 commit c9e1ca9
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 c9e1ca9

Please sign in to comment.