pretty-error icon indicating copy to clipboard operation
pretty-error copied to clipboard

Error message is stripped if stack exists

Open perry-mitchell opened this issue 8 years ago • 6 comments

It seems as though the error's message is stripped if a stack trace is present (ParsedError.coffee:25):

      if typeof @_stack is 'string'
        @_parseStack()
      else
        @_message = @error.message? and String(@error.message) or ''

Resulting in something like: screen shot 2016-04-29 at 8 50 01 pm (when no stack is present)

And this when there is a stack: screen shot 2016-04-29 at 8 49 46 pm

perry-mitchell avatar Apr 29 '16 17:04 perry-mitchell