Consider aggregating errors that happend during queries
Problem
When a user sends a query they should be informed about any errors that happened during query execution.
At present, queries that use iterators will return partial output in case of logic errors during iteration. We chose not to inform the user about the errors and instead opted to silently skip over any errors. Since the scope of ICS queries is pretty limited, it might be safe to communicate the errors to users to help debugging state.
Context: https://github.com/cosmos/interchain-security/pull/640#issuecomment-1375956166
Closing criteria
Analyse if errors can be safely communicated, isolate cases that need refactoring and perform the necessary changes
Alternatively, if erros should not be communicated close this issue.
TODOs
- [x] Labels have been added for issue
- [ ] Issue has been added to the ICS project
Another comment with helpful context https://github.com/cosmos/interchain-security/pull/640#discussion_r1064719889