Refactor installation to work out a few bugs and to make it cleaner. Transactions now reject on fail-responses, still need to update other places.

This commit is contained in:
Simo Kinnunen
2014-09-04 19:40:54 +09:00
parent f91bf901fa
commit c5a4727ae3
7 changed files with 159 additions and 233 deletions

View File

@@ -0,0 +1,4 @@
module.exports = function TransactionError(result) {
this.message = this.code = result.error
this.result = result
}