mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 12:03:33 -05:00
Don't bother checking for error properties on error object
This commit is contained in:
parent
f2ebdd1662
commit
7bdba3756b
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ module.exports = (obj, methodName, prefix, logger) ->
|
||||||
realMethod.call this, firstArgs..., (callbackArgs...) ->
|
realMethod.call this, firstArgs..., (callbackArgs...) ->
|
||||||
elapsedTime = timer.done()
|
elapsedTime = timer.done()
|
||||||
possibleError = callbackArgs[0]
|
possibleError = callbackArgs[0]
|
||||||
if possibleError? && possibleError.message? && possibleError.stack?
|
if possibleError?
|
||||||
metrics.inc "#{key}.failure"
|
metrics.inc "#{key}.failure"
|
||||||
else
|
else
|
||||||
metrics.inc "#{key}.success"
|
metrics.inc "#{key}.success"
|
||||||
|
|
Loading…
Reference in a new issue