mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Don't bother checking for error properties on error object
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user