uber/h3

Expose error messages strings via function in h3api.h

Aberta

#591 aberto em 11 de mar. de 2022

 (0 comentário) (0 reação) (1 responsável)C (585 forks)github user discovery
help wanted

Métricas do repositório

Stars
 (6.310 estrelas)
Métricas de merge de PR
 (Mesclagem média 7d 19h) (17 fundiu PRs em 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

Guia do colaborador