celestiaorg / celestiaorg/celestia-node
docs: Standardise error messages format
Open
documentation
errors
good first issue
- Dominant language
- Go
- Stars
- 996
- Forks
- 1.1k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 34
Description
Returned errors per service should have the following format:
```
fmt.Errorf("/: ")
```
for example:
```
fmt.Errorf("header/store: no valid headers were given")
```
### What should be done
1. Grep code for `fmt.Errorf` and `errors.New`
2. Implement if it's not following this style `"/: "`
3. 🚢
[Ref](https://github.com/celestiaorg/celestia-node/pull/195#discussion_r749234414).
Contributor guide
Assessment
This issue has not been assessed yet.