add script for generating errors.md

Usage:

```console
$ make
```

/cc @ctrembl