Error reporting
Using errno
isn't great for error reporting, because most values are pretty useless. We often end up using EINVAL
, and this doesn't allow callers to deduce a meaningful error message.
We should figure out a better way to report parsing errors.