     @description.text @spec.description
 
     for result in @spec.results().getItems() when not result.passed()
-      stackTrace = formatStackTrace(result.trace.stack)
+      stackTrace = formatStackTrace(result.message, result.trace.stack)
       @specFailures.append $$ ->
         @div result.message, class: 'resultMessage fail'
         @div stackTrace, class: 'stack-trace padded' if stackTrace

  for line in stackTrace.split('\n')
    convertedLines.push(line) unless jasminePattern.test(line)

  convertStackTrace(convertedLines.join('\n'), sourceMaps)

module.exports =
class AtomReporter extends View

{convertStackTrace} = require 'coffeestack'

sourceMaps = {}
formatStackTrace = (message='', stackTrace) ->
  return stackTrace unless stackTrace

  jasminePattern = /^\s*at\s+.*\(?.*\/jasmine(-[^\/]*)?\.js:\d+:\d+\)?\s*$/
