Closed distractedm1nd closed 2 years ago
Once https://github.com/celestiaorg/celestia-node/pull/1062/ is merged, errors written from the node will write errors as JSON, meaning we have to marshal them with a struct like:
type JSONError struct { Err string `json:"error"` }
when calling SetError (instead of into a string)
SetError
I can do this once the PR is merged, but it of course will not work for older versions of the node
Once https://github.com/celestiaorg/celestia-node/pull/1062/ is merged, errors written from the node will write errors as JSON, meaning we have to marshal them with a struct like:
when calling
SetError
(instead of into a string)