mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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...) ->
|
||||
elapsedTime = timer.done()
|
||||
possibleError = callbackArgs[0]
|
||||
if possibleError? && possibleError.message? && possibleError.stack?
|
||||
if possibleError?
|
||||
metrics.inc "#{key}.failure"
|
||||
else
|
||||
metrics.inc "#{key}.success"
|
||||
|
|
Loading…
Reference in a new issue