When a transaction fails, the js-sdk just passes back the horizon response blob, the actual errors are pretty far nested so you have to dig to get the error-codes out.
We should have a simple method to get errors out of the response similar to what the Go SDK did. https://godoc.org/github.com/stellar/go/clients/horizonclient#Error
When a transaction fails, the js-sdk just passes back the horizon response blob, the actual errors are pretty far nested so you have to dig to get the error-codes out.
We should have a simple method to get errors out of the response similar to what the Go SDK did. https://godoc.org/github.com/stellar/go/clients/horizonclient#Error