fix: ct error handling, v8.5.0-beta.2 (#1548)
* fix: response tx for machine update requests fix: CT error handling * fix: wrong error code * chore: version v8.5.0-beta.2 --------- Co-authored-by: Sérgio Salgado <sergiodiassalgado@gmail.com>
This commit is contained in:
parent
06f534fa48
commit
41584e9f4b
4 changed files with 7 additions and 3 deletions
|
|
@ -20,6 +20,10 @@ function postTx (req, res, next) {
|
|||
switch (tx.errorCode) {
|
||||
case 'InsufficientFundsError':
|
||||
throw httpError(tx.error, 570)
|
||||
case 'scoreThresholdReached':
|
||||
throw httpError(tx.error, 571)
|
||||
case 'ciphertraceError':
|
||||
throw httpError(tx.error, 572)
|
||||
default:
|
||||
throw httpError(tx.error, 500)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue