celestiaorg / celestiaorg/celestia-node

docs: Standardise error messages format

Open
#198 1 comment 3 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.