Update bluebird because the deprecated features are still available. Use same bluebird in browser.

This commit is contained in:
Simo Kinnunen
2014-09-05 15:32:21 +09:00
parent 77261ffd43
commit cc403ee553
5 changed files with 93 additions and 54 deletions

View File

@@ -1,4 +1,10 @@
module.exports = function TransactionError(result) {
this.message = this.code = result.error
this.result = result
function TransactionError(result) {
this.code = this.message = result.error
this.name = 'TransactionError'
Error.captureStackTrace(this, TransactionError)
}
TransactionError.prototype = Object.create(Error.prototype);
TransactionError.prototype.constructor = TransactionError;
module.exports = TransactionError