mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Output deprecation message
This commit is contained in:
@@ -141,7 +141,7 @@ ensureNoDeprecatedFunctionsCalled = ->
|
||||
Error.prepareStackTrace = (error, stack) ->
|
||||
output = []
|
||||
for deprecation in deprecations
|
||||
output.push "#{deprecation.originName} is deprecated"
|
||||
output.push "#{deprecation.originName} is deprecated. #{deprecation.message}"
|
||||
output.push _.multiplyString("-", output[output.length - 1].length)
|
||||
for stack in deprecation.getStacks()
|
||||
for {functionName, location} in stack
|
||||
|
||||
Reference in New Issue
Block a user