This commit is contained in:
Antonio Scandurra
2015-11-11 09:59:41 +01:00
parent c85088fb46
commit 8c3c2dfa8d

View File

@@ -696,9 +696,7 @@ class Config
fn(args...)
result = callback()
new Promise (resolve, reject) =>
result
.then(endTransaction(resolve))
.catch(endTransaction(reject))
result.then(endTransaction(resolve)).catch(endTransaction(reject))
catch error
@endTransaction()
Promise.reject(error)