add script for generating errors.md