uber/h3

Expose error messages strings via function in h3api.h

Aperta

#591 aperta il 11 mar 2022

 (0 commenti) (0 reazioni) (1 assegnatario)C (585 fork)github user discovery
help wanted

Metriche repository

Star
 (6310 stelle)
Metriche merge PR
 (Merge medio 7g 19h) (17 PR mergiate in 30 g)

Descrizione

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

Guida contributor