mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Trim stack trace lines
This commit is contained in:
@@ -23,6 +23,7 @@ formatStackTrace = (message='', stackTrace) ->
|
||||
prefixMatch = line.match(/at \[object Object\]\.<anonymous> \(([^\)]+)\)/)
|
||||
lines[index] = "at #{prefixMatch[1]}" if prefixMatch
|
||||
|
||||
lines = lines.map (line) -> line.trim()
|
||||
lines.join('\n')
|
||||
|
||||
module.exports =
|
||||
|
||||
Reference in New Issue
Block a user