In order to differentiate between different types of errors, there are methods in the apiserver that should return error values. Specifically, GetLastUserModification.
It currently returns an empty string on all errors, but we should indicate what we're trying to convey with the empty string using an error value. In the case of this specific function, we'd either return a "user not found error" or "consensus error".
39 helps a bit with this, but we still can't distinguish between error types. I'm going to restructure some of the interactions with the consensus module and will fix this issue.
In order to differentiate between different types of errors, there are methods in the apiserver that should return error values. Specifically,
GetLastUserModification
.It currently returns an empty string on all errors, but we should indicate what we're trying to convey with the empty string using an error value. In the case of this specific function, we'd either return a "user not found error" or "consensus error".