informalsystems / informalsystems/flex-error

Capitalization format makes erroring code hard to search for in codebase

Open
#5 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
13
Forks
2
PR merge metrics
No merged PRs in 30d

Description

For example: I was investigating a `HeaderVerificationFailure` error. I searched for `HeaderVerificationFailure` to see what code produced it, and came up empty-handed.

With further investigation, I was able to figure out where it came from, and I found that the code producing the error uses the syntax `Error::header_verification_failure(e.to_string()))` instead of something containing `HeaderVerificationFailure`.

IMO, this places an unnecessary overhead on developers debugging code using this library.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.