uber/h3

Expose error messages strings via function in h3api.h

Open

#591 opened on Mar 11, 2022

 (0 comments) (0 reactions) (1 assignee)C (585 forks)github user discovery
help wanted

Repository metrics

Stars
 (6,310 stars)
PR merge metrics
 (Avg merge 7d 19h) (17 merged PRs in 30d)

Description

Expose error message strings (which are currently given as comments in h3api.h), mainly so that the bindings can forward those explanations to users, without having to manually copy the messages.

Some examples in other projects:

Other notes:

  • Also needs to be added to our documentation
  • probably English only for now
  • const char *errorToString(H3Error err);
  • Eventually we could have the website build the error table from this function too

Contributor guide