Fix: Emit error events and return error on pathfind

This commit is contained in:
Alan Cohen
2015-08-20 11:47:33 -07:00
committed by Chris Clark
parent ba6c703163
commit 1ccbaf6776
21 changed files with 129 additions and 66 deletions

View File

@@ -19,7 +19,8 @@ module.exports = {
path_find: {
generate: require('./path-find'),
sendUSD: require('./path-find-send-usd'),
XrpToXrp: require('./path-find-xrp-to-xrp')
XrpToXrp: require('./path-find-xrp-to-xrp'),
srcActNotFound: require('./path-find-srcActNotFound')
},
tx: {
Payment: require('./tx/payment.json'),

View File

@@ -0,0 +1,20 @@
{
"error": "srcActNotFound",
"error_code": 58,
"error_message": "Source account not found.",
"id": 0,
"request": {
"command": "path_find",
"destination_account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"destination_amount": {
"currency": "USD",
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"value": "5"
},
"id": 1,
"source_account": "rajTAg3hon5Lcu1RxQQPxTgHvqfhc1EaUS",
"subcommand": "create"
},
"status": "error",
"type": "response"
}