lib/opts: replace `OptionContext::errors` by `get_errors`