mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Update bluebird because the deprecated features are still available. Use same bluebird in browser.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user